From 6f1c444efe9031829d80344b90b54ad03c8bcb11 Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Tue, 26 Nov 2024 16:20:12 +0100 Subject: [PATCH] ci: add publish release candidate action --- .../workflows/publish-release-candidate.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/publish-release-candidate.yaml diff --git a/.github/workflows/publish-release-candidate.yaml b/.github/workflows/publish-release-candidate.yaml new file mode 100644 index 0000000..09d39c6 --- /dev/null +++ b/.github/workflows/publish-release-candidate.yaml @@ -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.12' + - 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 \ No newline at end of file