-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (43 loc) · 1.55 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish to PyPI
on:
release:
types: [ published ]
jobs:
publish-secure-aggregation-zero:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-21.11
- name: Get the magic cache (Cachix)
uses: cachix/cachix-action@v10
with:
name: mangaki
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Publish to PyPI
run: nix-shell aggregation/default.nix \
-A publishShell \
--run 'cd pylib && maturin publish --compatibility manylinux_2_28 --username "__token__" --password="${{ secrets.PYPI_SECURE_AGGREGATION_TOKEN }}"'
publish-zero:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-21.11
- name: Get the magic cache (Cachix)
uses: cachix/cachix-action@v10
with:
name: mangaki
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Install Poetry
run: nix-env -f '<nixpkgs>' -iA poetry
- name: Install dependencies using Poetry
run: poetry install
- name: Configure Poetry to publish
run: poetry config pypi-token.pypi '${{ secrets.PYPI_MANGAKI_ZERO_TOKEN }}'
- name: Publish to PyPI
run: poetry publish --build