test 6 #1472
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | ||
| on: [pull_request, workflow_dispatch] | ||
| env: | ||
| GO_VERSION: "1.23" | ||
| jobs: | ||
| main: | ||
| name: CI | ||
| runs-on: macOS-latest | ||
| env: | ||
| SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} | ||
| # Needed to publish new packages to our S3-hosted APT repo | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| # Allow goreleaser to access older tag information. | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: "go.mod" | ||
| cache: true | ||
| - name: Import GPG key | ||
| uses: crazy-max/ghaction-import-gpg@v6 | ||
| id: import_gpg | ||
| with: | ||
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
| - name: Set up keychain | ||
| run: | | ||
| echo -n $SIGNING_CERTIFICATE_BASE64 | base64 -d -o ./ApplicationID.p12 | ||
| KEYCHAIN_PATH=$RUNNER_TEMP/ios_signing_temp.keychain-db | ||
| security create-keychain -p "${{ secrets.TEMP_KEYCHAIN }}" $KEYCHAIN_PATH | ||
| security default-keychain -s $KEYCHAIN_PATH | ||
| security unlock-keychain -p "${{ secrets.TEMP_KEYCHAIN }}" $KEYCHAIN_PATH | ||
| security import ./ApplicationID.p12 -P "${{ secrets.APPLICATION_ID }}" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH | ||
| security list-keychain -d user -s $KEYCHAIN_PATH | ||
| echo -n $AUTHKEY_BASE64 | base64 -d -o ./AuthKey.p8 | ||
| xcrun notarytool store-credentials stackit-cli -i $APPLE_ISSUER -d $APPLE_KEY_ID -k AuthKey.p8 --keychain $KEYCHAIN_PATH | ||
| rm ./ApplicationID.p12 | ||
| rm ./AuthKey.p8 | ||
| env: | ||
| APPLE_ISSUER: ${{ secrets.APPLE_ISSUER }} | ||
| APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} | ||
| SIGNING_CERTIFICATE_BASE64: ${{ secrets.APPLICATION_ID_CERT }} | ||
| AUTHKEY_BASE64: ${{ secrets.APPLE_API_KEY }} | ||
| - name: Install Aptly | ||
| run: | | ||
| brew install [email protected] | ||