Bump Autopub to latest alpha (#952) #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 🚀 AutoPub Release | |
| concurrency: release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| check-release: | |
| name: 📦 Check for release | |
| runs-on: ubuntu-latest | |
| outputs: | |
| has_release: ${{ steps.check.outputs['has-release'] }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.BOT_TOKEN }} | |
| - name: Check for release | |
| id: check | |
| uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1 | |
| with: | |
| command: check | |
| autopub-version: "1.0.0a63" | |
| github-token: ${{ secrets.BOT_TOKEN }} | |
| extra-plugins: strawberry-autopub-plugins | |
| - name: Debug info | |
| run: | | |
| echo "GitHub ref: ${{ github.ref }}" | |
| echo "has_release: ${{ steps.check.outputs['has-release'] }}" | |
| publish: | |
| name: 📦 Publish to PyPI | |
| needs: check-release | |
| if: ${{ github.ref == 'refs/heads/main' && needs.check-release.outputs.has_release == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Debug info | |
| run: | | |
| echo "GitHub ref: ${{ github.ref }}" | |
| echo "has_release: ${{ needs.check-release.outputs.has_release }}" | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.BOT_TOKEN }} | |
| - name: Prepare release | |
| uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1 | |
| with: | |
| command: prepare | |
| autopub-version: "1.0.0a63" | |
| extra-plugins: strawberry-autopub-plugins | |
| - name: Build package | |
| uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1 | |
| with: | |
| command: build | |
| autopub-version: "1.0.0a63" | |
| extra-plugins: strawberry-autopub-plugins | |
| - name: Publish to PyPI | |
| uses: autopub/autopub-action@5fdc82e84c048a82303de6b5c5a9d027665e73cf # v1.1.1 | |
| with: | |
| command: publish | |
| autopub-version: "1.0.0a63" | |
| extra-plugins: strawberry-autopub-plugins | |
| github-token: ${{ secrets.BOT_TOKEN }} | |
| git-username: botberry | |
| git-email: bot@strawberry.rocks | |
| env: | |
| TYPEFULLY_API_KEY: ${{ secrets.TYPEFULLY_API_KEY }} | |
| TYPEFULLY_SOCIAL_SET_ID: ${{ secrets.TYPEFULLY_SOCIAL_SET_ID }} |