Skip to content

ci: Sign automatic formatting PRs as bot #33

ci: Sign automatic formatting PRs as bot

ci: Sign automatic formatting PRs as bot #33

Workflow file for this run

name: Publish releases
on:
push:
tags:
- '20*'
jobs:
build:
uses: ./.github/workflows/build_inc.yml
with:
gitref: ${{ github.ref }}
all_tests:
needs: build
permissions:
actions: write
strategy:
matrix:
flavor:
- "normal"
- "alt"
uses: ./.github/workflows/test_inc.yml
with:
flavor: ${{ matrix.flavor }}
pypi-rel:
needs: all_tests
runs-on: ubuntu-22.04
environment: pypi
permissions:
id-token: write
strategy:
matrix:
flavor:
- "normal"
- "alt"
steps:
- uses: actions/download-artifact@v4
with:
name: dist-${{ matrix.flavor }}
path: dist
- name: Determine PyPI URL
uses: haya14busa/action-cond@v1
id: pypi-url
with:
cond: ${{ vars.OFFICIAL_PYPI || false }}
if_true: "https://upload.pypi.org/legacy/"
if_false: "https://test.pypi.org/legacy/"
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: ${{ steps.pypi-url.outputs.value }}
gh-rel:
needs: all_tests
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: dist-*
path: dist
merge-multiple: true
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.whl,dist/*.tar.gz"
artifactErrorsFailBuild: true
draft: true