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.
This commit is contained in:
Aditya Garg
2026-03-20 16:41:03 +05:30
committed by GitHub
parent e225caf97e
commit 53c8f2e7ac
+14 -10
View File
@@ -51,16 +51,20 @@ jobs:
wget https://raw.githubusercontent.com/t2linux/T2-Ubuntu/refs/heads/LTS/.github/workflows/instructions.txt
- name: Release
if: github.ref == 'refs/heads/flavourLTS'
uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/output/*
tag_name: v${{ env.isotag }}
body_path: ${{ github.workspace }}/instructions.txt
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#if: github.ref == 'refs/heads/flavourLTS'
#uses: softprops/action-gh-release@v2
#with:
# files: ${{ github.workspace }}/output/*
# tag_name: v${{ env.isotag }}
# body_path: ${{ github.workspace }}/instructions.txt
# draft: false
# prerelease: false
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release view v${{ env.isotag }} -R t2linux/T2-Ubuntu || \
gh release create v${{ env.isotag }} -t v${{ env.isotag }} -F ${{ github.workspace }}/instructions.txt -R t2linux/T2-Ubuntu
gh release upload v${{ env.isotag }} ${{ github.workspace }}/output/* --clobber -R t2linux/T2-Ubuntu
- name: Update the json
if: github.ref == 'refs/heads/flavourLTS'