mirror of
https://github.com/t2linux/T2-Ubuntu.git
synced 2026-08-16 05:18:03 -07:00
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:
+14
-10
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user