2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-16 10:05:21 +00:00
bench/.github/workflows/release.yml
2024-01-24 13:21:14 +05:30

33 lines
873 B
YAML

name: Generate Semantic Release and publish on PyPI
on:
push:
branches:
- v5.x
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 20
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Setup dependencies
run: |
npm install @semantic-release/git @semantic-release/exec --no-save
python3 -m pip install wheel twine
python3 -m pip install git+https://github.com/pypa/hatch
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
run: npx semantic-release