Skip to content

Commit

Permalink
Merge pull request #55 from voetberg/publish_workflow
Browse files Browse the repository at this point in the history
Create publish.yml
  • Loading branch information
bnord authored May 17, 2024
2 parents e7e150b + 932e6a1 commit 30d30bc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: publish-bench
on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install poetry ${{ matrix.poetry-version }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==1.3.2
- name: View poetry --help
run: poetry --help
- name: Install dependencies
shell: bash
run: python -m poetry install
- name: Build package
run: python3 -m poetry build
- name: Publish Package
run: python3 -m poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}

0 comments on commit 30d30bc

Please sign in to comment.