Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,15 @@ jobs:
dpkg-deb --root-owner-group --build install
mv install.deb gcc-15.deb

- name: Compute tag name
id: tag_name
run: |
git_hash=$(git rev-parse "$GITHUB_SHA")
echo "TAG_NAME=$git_hash" >> $GITHUB_OUTPUT

- name: Create tag
if: github.ref == 'refs/heads/master'
continue-on-error: true
uses: laputansoft/github-tag-action@v4.6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_annotated_tag: true
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api repos/${{ github.repository }}/git/refs \
-f ref=refs/tags/master-$GITHUB_SHA \
-f sha=$GITHUB_SHA

- name: Create release
if: github.ref == 'refs/heads/master' && !matrix.version.use_patch
Expand All @@ -83,7 +78,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/gcc/install/usr/lib/libgccjit.so.0.0.1
asset_name: libgccjit${{ matrix.os.asset_name_suffix }}.so
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}
tag: master-${{ github.sha }}

- name: Create release
if: github.ref == 'refs/heads/master'
Expand All @@ -92,4 +87,4 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/gcc/gcc-15.deb
asset_name: ${{ matrix.version.asset_name }}${{ matrix.os.asset_name_suffix }}.deb
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}
tag: master-${{ github.sha }}
Loading