v0.2.0 #3
Workflow file for this run
This file contains 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: Publish Offchain | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Extract release branch | |
id: extract_branch | |
env: | |
REF: ${{ github.ref }} | |
run: echo ::set-output name=branch::release/${REF:10} | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ steps.extract_branch.outputs.branch }} | |
- uses: actions/setup-python@v2 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Configure Poetry token | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_KEY }} | |
- name: Publish package | |
run: poetry publish --build |