1
- name : " Publish App Store "
1
+ name : " Publish"
2
2
3
3
on :
4
4
release :
5
5
types : [published]
6
6
7
7
concurrency :
8
- group : ${{ github.workflow }}
8
+ group : ${{ github.workflow }}-${{ github.ref }}
9
9
cancel-in-progress : true
10
10
11
+ env :
12
+ command : ${{ github.event.release.prerelease && 'beta' || 'push_appstore' }}
13
+
11
14
jobs :
12
- build :
13
- if : ${{ !github.event.release.prerelease }}
14
- runs-on : ["macos-15"]
15
+ publish :
16
+ name : " Publish"
17
+ runs-on : macos-15
18
+ timeout-minutes : 30
15
19
16
20
steps :
17
21
- name : " Checkout"
@@ -25,15 +29,15 @@ jobs:
25
29
- name : " Debug Run Number"
26
30
continue-on-error : true
27
31
run : |
28
- echo "run_number : ${{ steps.run.outputs.number }}"
32
+ echo "number : ${{ steps.run.outputs.number }}"
29
33
30
34
- name : " Add SSH Key"
31
35
uses :
webfactory/[email protected]
32
36
with :
33
37
ssh-private-key : ${{ secrets.SSH_KEY }}
34
38
35
- - name : " Publish App "
36
- run : fastlane ${{ github.event.release.prerelease && 'beta' || 'push_appstore' }}
39
+ - name : " Fastlane ${{ env.command }} "
40
+ run : fastlane ${{ env.command }}
37
41
env :
38
42
MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
39
43
MATCH_URL :
[email protected] :django-files/ios-match-certs.git
44
48
ASC_API_ID : ${{ secrets.ASC_API_ID }}
45
49
BUILD_NUMBER : ${{ steps.run.outputs.number }}
46
50
VERSION_NUMBER : ${{ github.event.release.tag_name }}
51
+
52
+ - name : " Debug Fastlane"
53
+ if : ${{ !github.event.act }}
54
+ continue-on-error : true
55
+ run : |
56
+ ls -lAh .
57
+ ls -lAh fastlane/metadata
58
+ ls -lAh fastlane/screenshots
59
+
60
+ - name : " Upload Metadata"
61
+ if : ${{ !github.event.act }}
62
+ continue-on-error : true
63
+ uses : actions/upload-artifact@v4
64
+ with :
65
+ name : ${{ github.repository_owner }}-metadata
66
+ path : " fastlane/metadata"
67
+
68
+ - name : " Upload Screenshots"
69
+ if : ${{ !github.event.act }}
70
+ continue-on-error : true
71
+ uses : actions/upload-artifact@v4
72
+ with :
73
+ name : ${{ github.repository_owner }}-screenshots
74
+ path : " fastlane/screenshots"
75
+
76
+ - name : " Upload IPA"
77
+ if : ${{ !github.event.act }}
78
+ continue-on-error : true
79
+ uses : actions/upload-artifact@v4
80
+ with :
81
+ name : ${{ github.repository_owner }}-${{ env.command }}
82
+ path : " Django Files.ipa"
83
+
84
+ - name : " Upload IPA to Release"
85
+ if : ${{ github.event_name == 'release' }}
86
+ continue-on-error : true
87
+ uses : svenstaro/upload-release-action@v2
88
+ with :
89
+ file : " Django Files.ipa"
90
+ tag : ${{ github.ref }}
91
+ overwrite : true
92
+
93
+ - name : " Update Release Notes Action"
94
+ if : ${{ github.event_name == 'release' }}
95
+ continue-on-error : true
96
+ uses : smashedr/update-release-notes-action@master
97
+ with :
98
+ type : generic
99
+
100
+ - name : " Send Failure Notification"
101
+ if : ${{ failure() && github.event_name == 'release' }}
102
+ uses : sarisia/actions-status-discord@v1
103
+ with :
104
+ webhook : ${{ secrets.DISCORD_WEBHOOK }}
0 commit comments