diff --git a/.github/workflows/nightlies.yaml b/.github/workflows/nightlies.yaml index c5333cd4..f9dcc248 100644 --- a/.github/workflows/nightlies.yaml +++ b/.github/workflows/nightlies.yaml @@ -1,9 +1,9 @@ --- name: Nightlies -# on: # yamllint disable-line rule:truthy -# push: -# branches: [main] +on: # yamllint disable-line rule:truthy + push: + branches: [main] jobs: deliver-demo-nightlies: diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml new file mode 100644 index 00000000..fc271c9c --- /dev/null +++ b/.github/workflows/releases.yaml @@ -0,0 +1,41 @@ +--- +name: Releases + +on: # yamllint disable-line rule:truthy + push: +# branches: +# - main + tags: + - '*' + +jobs: + deliver-demo-releases: + name: "🚀 Releases" + runs-on: macos-latest + strategy: + matrix: + platform: [ios, tvos] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Add Apple certificate + run: | + Scripts/add-apple-certificate.sh \ + $RUNNER_TEMP \ + ${{ secrets.KEYCHAIN_PASSWORD }} \ + ${{ secrets.SRGSSR_APPLE_DEV_CERTIFICATE_B64 }} + + - name: Configure environment + run: | + Scripts/configure-environment.sh \ + ${{ secrets.APP_STORE_CONNECT_API_KEY }} + + - name: Archive the demo + run: | + make deliver-demo-release-${{ matrix.platform }} + env: + TEAM_ID: ${{ secrets.TEAM_ID }} + KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} + KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }} + TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }}