Skip to content

Commit 3c4be2b

Browse files
Publish workflow for releases (#13)
Once a release is done, it will launch GH Action to proceed to publish master on PyPI.
1 parent c0c2745 commit 3c4be2b

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Install Nix
14+
uses: cachix/install-nix-action@v8
15+
16+
- name: Get the magic cache (Cachix)
17+
uses: cachix/cachix-action@v6
18+
with:
19+
name: mangaki
20+
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
21+
22+
- name: Configure Poetry to publish
23+
run: poetry config pypi-token.pypi '${{ secrets.PYPI_API_TOKEN }}'
24+
25+
- name: Publish to PyPI
26+
run: poetry publish

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
.DS_Store
22
build
33
venv
4+
.venv
45
*.csv
56
*.json
67
*.pdf
78
*.pyc
9+
dist/
10+
mangaki_zero.egg-info/
11+
.coverage
12+
coverage.xml

0 commit comments

Comments
 (0)