Skip to content

Release: v0.3.9

Release: v0.3.9 #5

Workflow file for this run

name: Formal Release
on:
pull_request:
types: [closed]
permissions:
contents: write
id-token: write
deployments: write
jobs:
build:
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release/') &&
github.event.pull_request.user.login == 'fedi-libs-release-bot[bot]'
uses: fedi-libs/release-manager/.github/workflows/reusable-formal-release.yml@main
with:
phase: "1"
head_ref: ${{ github.event.pull_request.head.ref }}
pr_body: ${{ github.event.pull_request.body }}
package_name: ${{ github.event.repository.name }}
secrets:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
pypi-publish:
needs: build
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
publish-github-release:
needs: [build, pypi-publish]
uses: fedi-libs/release-manager/.github/workflows/reusable-formal-release.yml@main
with:
phase: "2"
head_ref: ${{ github.event.pull_request.head.ref }}
pr_body: ${{ github.event.pull_request.body }}
package_name: ${{ github.event.repository.name }}
deployment_id: ${{ needs.build.outputs.deployment_id }}
secrets:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
deploy-docs:
needs: publish-github-release
uses: ./.github/workflows/docs.yml