Plunder Tracker 1.0.0 #1
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: ["v*"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Check the tag matches version.py | |
| run: | | |
| tag="${GITHUB_REF_NAME#v}" | |
| src=$(grep -oP '__version__ = "\K[^"]+' tracker/loot_tracker/version.py) | |
| if [ "$tag" != "$src" ]; then | |
| echo "Tag $tag does not match __version__ $src in version.py" >&2 | |
| exit 1 | |
| fi | |
| echo "version=$tag" >> "$GITHUB_ENV" | |
| - name: Build the tracker archive | |
| run: | | |
| mkdir -p out | |
| zip -r "out/plunder-tracker-$version.zip" tracker README.md LICENSE CHANGELOG.md docs \ | |
| -x '*/__pycache__/*' | |
| - name: Publish | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: out/*.zip | |
| generate_release_notes: true | |
| body: | | |
| Download the zip below, or update an existing checkout with `git pull` | |
| (or press `u` in the tracker, which does the same thing in place). |