Skip to content

Commit deffb6a

Browse files
committed
test 5
Signed-off-by: Alexander Dahmen <[email protected]>
1 parent d7d1dff commit deffb6a

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,44 @@ jobs:
99
main:
1010
name: CI
1111
runs-on: macOS-latest
12+
env:
13+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
14+
# Needed to publish new packages to our S3-hosted APT repo
15+
AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
16+
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
1217
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
- name: Alex test
18+
- uses: actions/checkout@v4
19+
with:
20+
# Allow goreleaser to access older tag information.
21+
fetch-depth: 0
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version-file: "go.mod"
25+
cache: true
26+
- name: Import GPG key
27+
uses: crazy-max/ghaction-import-gpg@v6
28+
id: import_gpg
29+
with:
30+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
31+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
32+
- name: Set up keychain
1633
run: |
17-
brew search aptly
18-
brew install [email protected]
19-
which aptly
20-
aptly version
34+
echo -n $SIGNING_CERTIFICATE_BASE64 | base64 -d -o ./ApplicationID.p12
35+
KEYCHAIN_PATH=$RUNNER_TEMP/ios_signing_temp.keychain-db
36+
security create-keychain -p "${{ secrets.TEMP_KEYCHAIN }}" $KEYCHAIN_PATH
37+
security default-keychain -s $KEYCHAIN_PATH
38+
security unlock-keychain -p "${{ secrets.TEMP_KEYCHAIN }}" $KEYCHAIN_PATH
39+
security import ./ApplicationID.p12 -P "${{ secrets.APPLICATION_ID }}" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
40+
security list-keychain -d user -s $KEYCHAIN_PATH
41+
echo -n $AUTHKEY_BASE64 | base64 -d -o ./AuthKey.p8
42+
xcrun notarytool store-credentials stackit-cli -i $APPLE_ISSUER -d $APPLE_KEY_ID -k AuthKey.p8 --keychain $KEYCHAIN_PATH
43+
rm ./ApplicationID.p12
44+
rm ./AuthKey.p8
45+
env:
46+
APPLE_ISSUER: ${{ secrets.APPLE_ISSUER }}
47+
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
48+
SIGNING_CERTIFICATE_BASE64: ${{ secrets.APPLICATION_ID_CERT }}
49+
AUTHKEY_BASE64: ${{ secrets.APPLE_API_KEY }}
50+
- name: Install Aptly
51+
run: |
52+
brew install [email protected]

0 commit comments

Comments
 (0)