Skip to content

updates (#39)

updates (#39) #12

Workflow file for this run

name: Create Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pdm
pdm install
- name: Build Release Files
run: |
pdm run python build_release.py
- name: Create Release
id: create_release
uses: rymndhng/release-on-push-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
bump_version_scheme: minor
tag_prefix: v
release_name: "Release <RELEASE_VERSION>"
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for file in dist/*; do
if [ -f "$file" ]; then
gh release upload "${{ steps.create_release.outputs.tag_name }}" "$file" --clobber
fi
done