Skip to content

Commit

Permalink
Add releases workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Dec 2, 2024
1 parent a6e07fb commit c1f7341
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nightlies.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit c1f7341

Please sign in to comment.