Skip to content

release

release #22

Workflow file for this run

name: release
concurrency:
group: build-${{ github.event.workflow_run.head_branch }}
cancel-in-progress: true
on:
workflow_run:
workflows: [tests]
branches: [master]
types: [completed]
jobs:
release:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@main
- name: Install poetry
run: pipx install poetry
- name: Setup poetry
run: poetry config pypi-token.pypi ${{ secrets.PYPI }}
- name: Build and publish
run: poetry publish --build
notify:
runs-on: ubuntu-latest
needs: release
steps:
- name: Notify Success
uses: archive/github-actions-slack@master
with:
slack-channel: C2CRL4C4V
slack-text: "*[${{ github.repository }}]* package is published *(${{ github.ref }})* https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-optional-as_user: false
slack-optional-icon_emoji: ":white_check_mark:"