Skip to content

Commit 8c6c4cf

Browse files
authored
Restore GITHUB_TOKEN for release process
Re-enable GitHub token for release creation and upload.
1 parent 53c8f2e commit 8c6c4cf

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ jobs:
5959
# body_path: ${{ github.workspace }}/instructions.txt
6060
# draft: false
6161
# prerelease: false
62-
#env:
63-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6462
run: |
6563
gh release view v${{ env.isotag }} -R t2linux/T2-Ubuntu || \
6664
gh release create v${{ env.isotag }} -t v${{ env.isotag }} -F ${{ github.workspace }}/instructions.txt -R t2linux/T2-Ubuntu
6765
gh release upload v${{ env.isotag }} ${{ github.workspace }}/output/* --clobber -R t2linux/T2-Ubuntu
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

6969
- name: Update the json
7070
if: github.ref == 'refs/heads/flavourLTS'
@@ -159,14 +159,18 @@ jobs:
159159
wget https://raw.githubusercontent.com/t2linux/T2-Ubuntu/refs/heads/LTS/.github/workflows/instructions.txt
160160
161161
- name: Release
162-
if: github.ref == 'refs/heads/flavourLTS'
163-
uses: softprops/action-gh-release@v2
164-
with:
165-
files: ${{ github.workspace }}/output/*
166-
tag_name: v${{ env.isotag }}
167-
body_path: ${{ github.workspace }}/instructions.txt
168-
draft: false
169-
prerelease: false
162+
#if: github.ref == 'refs/heads/flavourLTS'
163+
#uses: softprops/action-gh-release@v2
164+
#with:
165+
# files: ${{ github.workspace }}/output/*
166+
# tag_name: v${{ env.isotag }}
167+
# body_path: ${{ github.workspace }}/instructions.txt
168+
# draft: false
169+
# prerelease: false
170+
run: |
171+
gh release view v${{ env.isotag }} -R t2linux/T2-Ubuntu || \
172+
gh release create v${{ env.isotag }} -t v${{ env.isotag }} -F ${{ github.workspace }}/instructions.txt -R t2linux/T2-Ubuntu
173+
gh release upload v${{ env.isotag }} ${{ github.workspace }}/output/* --clobber -R t2linux/T2-Ubuntu
170174
env:
171175
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172176

0 commit comments

Comments
 (0)