Skip to content

Commit

Permalink
Simplify tagging.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Mar 23, 2023
1 parent 8a9023a commit f6bf9f7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1067,18 +1067,20 @@ jobs:
if [ -z "$(git tag -l "${TAG}")" ]; then
git tag -a "${TAG}" ${TAG_HASH} -m "Update to ${TAG}"
echo "TAG=$TAG" >> $GITHUB_ENV
echo "TAG_SHA=$TAG_HASH" >> $GITHUB_ENV
else
echo "Tag already applied"
echo "Tag already applied, nothing to do."
fi
- name: Publish tag
if: ${{ env.TAG != '' }}
# For now, just publish tag, but we can also use this to
# publish the binaries we built before.
uses: svenstaro/upload-release-action@v2
uses: rexdefuror/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
owner: 'chipsalliance'
repo: 'Surelog'
tag: ${{ env.TAG }}
commit: ${{ env.TAG_SHA }}

# Code formatting
CodeFormatting:
Expand Down

0 comments on commit f6bf9f7

Please sign in to comment.