diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..716d2ca --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.gitignore b/.gitignore index 433eeba..ba2092a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,12 @@ .DS_Store build venv +.venv *.csv *.json *.pdf *.pyc +dist/ +mangaki_zero.egg-info/ +.coverage +coverage.xml