Skip to content

Commit 53c8f2e

Browse files
authored
Modify CI workflow to use GitHub CLI for releases
Commented out the release step and added a fallback for creating and uploading a release using GitHub CLI.
1 parent e225caf commit 53c8f2e

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/CI.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,20 @@ jobs:
5151
wget https://raw.githubusercontent.com/t2linux/T2-Ubuntu/refs/heads/LTS/.github/workflows/instructions.txt
5252
5353
- name: Release
54-
if: github.ref == 'refs/heads/flavourLTS'
55-
uses: softprops/action-gh-release@v2
56-
with:
57-
files: ${{ github.workspace }}/output/*
58-
tag_name: v${{ env.isotag }}
59-
body_path: ${{ github.workspace }}/instructions.txt
60-
draft: false
61-
prerelease: false
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
#if: github.ref == 'refs/heads/flavourLTS'
55+
#uses: softprops/action-gh-release@v2
56+
#with:
57+
# files: ${{ github.workspace }}/output/*
58+
# tag_name: v${{ env.isotag }}
59+
# body_path: ${{ github.workspace }}/instructions.txt
60+
# draft: false
61+
# prerelease: false
62+
#env:
63+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
run: |
65+
gh release view v${{ env.isotag }} -R t2linux/T2-Ubuntu || \
66+
gh release create v${{ env.isotag }} -t v${{ env.isotag }} -F ${{ github.workspace }}/instructions.txt -R t2linux/T2-Ubuntu
67+
gh release upload v${{ env.isotag }} ${{ github.workspace }}/output/* --clobber -R t2linux/T2-Ubuntu
6468
6569
- name: Update the json
6670
if: github.ref == 'refs/heads/flavourLTS'

0 commit comments

Comments
 (0)