File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Deploy to Pronamic WordPress directory
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
+ slug :
7
+ default : ' pronamic-pay-with-mollie-for-gravity-forms'
8
+ type : string
6
9
version :
7
10
description : ' Version to deploy to Pronamic WordPress directory'
8
11
required : true
@@ -20,10 +23,13 @@ jobs:
20
23
contents : ' read'
21
24
id-token : ' write'
22
25
26
+ env :
27
+ FILENAME : ${{ inputs.slug }}.${{ inputs.version }}.zip
28
+
23
29
steps :
24
30
- name : ' Download'
25
31
run : |
26
- gh release download v${{ inputs.version }} --repo ${{ github.repository }} --pattern pronamic-pay-with-mollie-for-gravity-forms.$ {{ inputs.version }}.zip
32
+ gh release download v${{ inputs.version }} --repo ${{ github.repository }} --pattern {{ env.FILENAME }}
27
33
env :
28
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
35
38
44
39
45
- name : ' Use gcloud CLI'
40
46
run : ' gcloud info'
47
+
48
+ - name : ' Upload'
49
+ run : ' gcloud storage cp {{ env.FILENAME }} gs://wp.pronamic.download/plugins/${{ inputs.slug }}/{{ env.FILENAME }}
You can’t perform that action at this time.
0 commit comments