FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
plotdevice/.github/workflows/release.yml at main · plotdevice/plotdevice · GitHub
plotdevice
plotdevice
Repository navigation
Code
Issues
10
(10)
Pull requests
4
(4)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
plotdevice
/
.github
/
workflows
/
release.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
83 lines (69 loc) · 2.31 KB
Breadcrumbs
plotdevice
/
.github
/
workflows
/
release.yml
Copy path
File metadata and controls
83 lines (69 loc) · 2.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name
:
New release
on
:
push
:
tags
:
-
"
v*
"
jobs
:
app
:
name
:
Build App
runs-on
:
macos-latest
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Set up Keychain
env
:
BUILD_CERTIFICATE_BASE64
:
${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD
:
${{ secrets.P12_PASSWORD }}
KEYCHAIN_PASSWORD
:
${{ secrets.KEYCHAIN_PASSWORD }}
AC_TEAM
:
${{ secrets.AC_TEAM }}
AC_ID
:
${{ secrets.AC_ID }}
run
:
|
# import code signing cert
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $CERTIFICATE_PATH
# create temporary keychain
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
# import certificate to keychain
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
# collect notarization credentials
xcrun notarytool store-credentials "AC_NOTARY" --apple-id "$AC_ID" --team-id "$AC_TEAM" --password "${{ secrets.AC_PASSWORD }}"
-
name
:
Run Tests
run
:
|
python3 setup.py test
-
name
:
Build & Notarize App
run
:
|
python3 setup.py dist
-
name
:
Create Draft Release
uses
:
softprops/action-gh-release@v1
with
:
draft
:
true
name
:
PlotDevice ${{ github.ref_name }}
body_path
:
CHANGES.md
files
:
|
dist/*.zip
sdist
:
name
:
Post to test.pypi.org
runs-on
:
macos-latest
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Run Tests
run
:
|
python3 setup.py test
-
name
:
Build Source Distribution
run
:
|
python3 setup.py sdist
-
name
:
Upload to test.pypi.org
env
:
TWINE_USERNAME
:
samizdat
TWINE_PASSWORD
:
${{ secrets.PYPI_TEST_PASSWORD }}
TWINE_REPOSITORY
:
https://test.pypi.org/legacy/
TWINE_NON_INTERACTIVE
:
1
run
:
|
pip3 install twine
twine check dist/*
twine upload -r testpypi dist/*
Back
|
FazBrowse Home
|
New Git URL