Skip to content

Merge pull request #2 from strawberry-graphql/agent/initial-release #2

Merge pull request #2 from strawberry-graphql/agent/initial-release

Merge pull request #2 from strawberry-graphql/agent/initial-release #2

Workflow file for this run

name: 🆙 Release
concurrency: release
on:
push:
branches: [main]
permissions:
contents: read
jobs:
check-release:
name: Check for release
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
outputs:
has_release: ${{ steps.check.outputs.has-release }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.BOT_TOKEN || github.token }}
- name: Check for release
id: check
uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1
with:
command: check
autopub-version: "1.0.0a61"
github-token: ${{ secrets.BOT_TOKEN || github.token }}
publish:
name: Publish to PyPI
needs: check-release
if: ${{ needs.check-release.outputs.has_release == 'true' }}
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.BOT_TOKEN || github.token }}
- name: Prepare release
uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1
with:
command: prepare
autopub-version: "1.0.0a61"
- name: Build package
uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1
with:
command: build
autopub-version: "1.0.0a61"
- name: Publish to PyPI
uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1
with:
command: publish
autopub-version: "1.0.0a61"
github-token: ${{ secrets.BOT_TOKEN || github.token }}
git-username: botberry
git-email: bot@strawberry.rocks