Skip to content

Commit

Permalink
Merge pull request #89 from algorandfoundation/switch-to-GH-actions
Browse files Browse the repository at this point in the history
short sha for tag name
  • Loading branch information
shane-at-algo authored Mar 8, 2023
2 parents f55b1c4 + 16d4461 commit a9d8d19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
make
tar -czvf specs.tar.gz html pdf
- name: Get short SHA
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Publish Release
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: softprops/action-gh-release@v1
Expand All @@ -35,6 +40,6 @@ jobs:
html/*
pdf/*
specs.tar.gz
tag_name: ${{ github.sha | truncate(8, '') }}
tag_name: ${{ steps.vars.outputs.sha_short }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a9d8d19

Please sign in to comment.