Skip to content

Commit

Permalink
ci: add publish release candidate action
Browse files Browse the repository at this point in the history
  • Loading branch information
woile committed Nov 26, 2024
1 parent 7def06a commit e18515f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-release-candidate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Warning!! Only push to `rc` branch if your PR is passing all checks!
name: Release Candidate

on:
push:
branches:
- rc/*


jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
push: false
prerelease: rc
devrelease: ${{ github.run_id }}${{ github.run_number }}
- name: Install Dependencies
run: |
python -m pip install -U pip poetry
poetry --version
poetry config --local virtualenvs.in-project true
poetry install
- name: Publish
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
./scripts/publish

0 comments on commit e18515f

Please sign in to comment.