File tree 3 files changed +51
-3
lines changed
3 files changed +51
-3
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " *.*.*"
7
- workflow_dispatch :
8
7
9
8
jobs :
10
9
build :
17
16
- name : Checkout
18
17
uses : actions/checkout@v2
19
18
19
+ - name : Import GPG key used for testing
20
+ id : import-gpg
21
+ uses : crazy-max/ghaction-import-gpg@v4
22
+ with :
23
+ gpg_private_key : ${{ secrets.TEST_GPG_PRIVATE_KEY }}
24
+ passphrase : ${{ secrets.TEST_PASSPHRASE }}
25
+ git_user_signingkey : true
26
+ git_commit_gpgsign : true
27
+ git_config_global : true
28
+
20
29
- name : Setup Python
21
30
uses : actions/setup-python@v2.3.1
22
31
with :
71
80
images : |
72
81
nautiluscyberneering/librarian
73
82
ghcr.io/${{ github.repository }}
83
+
84
+ - name : Build and push Docker images
85
+ uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
86
+ with :
87
+ context : .
88
+ push : true
89
+ tags : ${{ steps.meta.outputs.tags }}
90
+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " *.*.*"
7
- workflow_dispatch :
8
7
9
8
jobs :
10
9
build :
16
15
- name : Checkout
17
16
uses : actions/checkout@v2
18
17
18
+ - name : Import GPG key used for testing
19
+ id : import-gpg
20
+ uses : crazy-max/ghaction-import-gpg@v4
21
+ with :
22
+ gpg_private_key : ${{ secrets.TEST_GPG_PRIVATE_KEY }}
23
+ passphrase : ${{ secrets.TEST_PASSPHRASE }}
24
+ git_user_signingkey : true
25
+ git_commit_gpgsign : true
26
+ git_config_global : true
27
+
19
28
- name : Setup Python
20
29
uses : actions/setup-python@v2.3.1
21
30
with :
58
67
run : |
59
68
[[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
60
69
|| echo ::set-output name=prerelease::true
70
+
71
+ - name : Create Release
72
+ uses : ncipollo/release-action@v1
73
+ with :
74
+ artifacts : " dist/*"
75
+ token : ${{ secrets.GITHUB_TOKEN }}
76
+ draft : false
77
+ prerelease : steps.check-version.outputs.prerelease == 'true'
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " *.*.*"
7
- workflow_dispatch :
8
7
9
8
jobs :
10
9
build :
14
13
- name : Checkout
15
14
uses : actions/checkout@v2
16
15
16
+ - name : Import GPG key used for testing
17
+ id : import-gpg
18
+ uses : crazy-max/ghaction-import-gpg@v4
19
+ with :
20
+ gpg_private_key : ${{ secrets.TEST_GPG_PRIVATE_KEY }}
21
+ passphrase : ${{ secrets.TEST_PASSPHRASE }}
22
+ git_user_signingkey : true
23
+ git_commit_gpgsign : true
24
+ git_config_global : true
25
+
17
26
- name : Setup Python
18
27
uses : actions/setup-python@v2.3.1
19
28
with :
50
59
51
60
- name : Build Python package
52
61
run : poetry build
62
+
63
+ - name : Publish to PyPI
64
+ env :
65
+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_API_TOKEN }}
66
+ run : poetry publish
You can’t perform that action at this time.
0 commit comments