Skip to content

feat: version 1.21 rc1 + item showcase build automation #46

feat: version 1.21 rc1 + item showcase build automation

feat: version 1.21 rc1 + item showcase build automation #46

Workflow file for this run

name: Build
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
env:
PYTHON_VERSION: "3.12.2"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build project
run: beet -p ./tasty_supplies build
- name: Zip all builds
run: |
cd ./tasty_supplies/build/
for dir in *; do
cd ./$dir
zip -r ../$dir.zip ./*
cd ..
done
- name: Create Release
uses: softprops/action-gh-release@v2
with:
make_latest: true
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
files: ./tasty_supplies/build/*.zip
fail_on_unmatched_files: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md