Skip to content

Commit

Permalink
Improve release workflow
Browse files Browse the repository at this point in the history
* Include the specification version in the commit message when adding the
built version to the gh-pages branch.
* Use the mailing list address for the automation's git user.email

Signed-off-by: Joshua Lock <[email protected]>
  • Loading branch information
joshuagl committed Feb 23, 2021
1 parent a9b3075 commit 948022f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ jobs:

- name: Push generated specification
if: steps.getver.outputs.spec_version != steps.prevver.outputs.prev_version
env:
SPEC_VERSION: v${{ steps.getver.outputs.spec_version }}
run: |
git config user.name "TUF Specification Automation"
git config user.email tuf-spec-bot@example.com
git config user.email theupdateframework@googlegroups.com
rm -fr latest
mv build/* .
rmdir build
make index
git add .
git commit -m "Publish latest specification"
git commit -m "Publish latest specification $SPEC_VERSION"
git push

0 comments on commit 948022f

Please sign in to comment.