Update all GHA and reference pinned version number/tag #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update draft specification | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: draft | ||
jobs: | ||
build-draft: | ||
name: Make draft spec release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v | ||
5.0.0 | ||
with: | ||
python-version: '3.10' | ||
cache: pip | ||
- name: Clone | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1. | ||
1 | ||
- name: Build specification | ||
run: | | ||
python -m pip install -r requirements.txt | ||
mkdir build && cd build | ||
make -f ../Makefile draft | ||
- name: Switch branch | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1. | ||
1 | ||
with: | ||
ref: gh-pages | ||
clean: false | ||
- name: Push generated specification | ||
run: | | ||
git config user.name "TUF Specification Automation" | ||
git config user.email theupdateframework@googlegroups.com | ||
rm -fr draft | ||
mv build/* . | ||
rmdir build | ||
git add . | ||
git commit -m "Publish latest draft specification" | ||
git push |