Skip to content

Commit

Permalink
Publish workflow for releases (#13)
Browse files Browse the repository at this point in the history
Once a release is done, it will launch GH Action to proceed to publish master on PyPI.
  • Loading branch information
RaitoBezarius authored May 3, 2020
1 parent c0c2745 commit 3c4be2b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to PyPI

on:
release:
types: [ published ]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Nix
uses: cachix/install-nix-action@v8

- name: Get the magic cache (Cachix)
uses: cachix/cachix-action@v6
with:
name: mangaki
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'

- name: Configure Poetry to publish
run: poetry config pypi-token.pypi '${{ secrets.PYPI_API_TOKEN }}'

- name: Publish to PyPI
run: poetry publish
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.DS_Store
build
venv
.venv
*.csv
*.json
*.pdf
*.pyc
dist/
mangaki_zero.egg-info/
.coverage
coverage.xml

0 comments on commit 3c4be2b

Please sign in to comment.