-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (77 loc) · 2.32 KB
/
deploy.yml
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
# Deploys new version to app_store, generates screenshots and publish them on Github Pages.
name: Deploy
on:
push:
tags:
- "v*"
workflow_dispatch:
concurrency:
group: movapp-apple-deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
app_store:
runs-on: macos-12
timeout-minutes: 40
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_PRIVATE_KEY: ${{ secrets.MATCH_GIT_PRIVATE_KEY }}
APP_STORE_API_KEY: ${{ secrets.APP_STORE_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Build & Upload
run: |
bundle install
bundle exec fastlane upload
screenshots:
runs-on: macos-12
timeout-minutes: 270 # 4,5 hours
steps:
- uses: actions/checkout@v3
- name: Build & Upload
run: |
bundle install
bundle exec fastlane create_missing_devices
bundle exec fastlane screenshots
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
name: github-pages # default name using `actions/deploy-pages`
path: Fastlane/screenshots
- uses: actions/upload-artifact@v3
with:
name: screenshots
path: Fastlane/screenshots
retention-days: 1
upload_metadata:
runs-on: macos-12
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_PRIVATE_KEY: ${{ secrets.MATCH_GIT_PRIVATE_KEY }}
APP_STORE_API_KEY: ${{ secrets.APP_STORE_API_KEY }}
needs: screenshots
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: screenshots
path: Fastlane/screenshots
- name: Build & Upload
run: |
bundle install
bundle exec fastlane create_missing_devices
bundle exec fastlane upload_metadata
# Deployment job
pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: screenshots
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1