File tree 1 file changed +19
-14
lines changed
1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy the plugin as the artifact
1
+ name : Generate and Commit Plugin as a Zip file
2
2
3
3
on :
4
4
push :
5
- branches : ["main"]
6
-
7
- workflow_dispatch :
5
+ branches :
6
+ - commit-latest-zip
8
7
9
8
jobs :
10
9
build :
11
10
runs-on : ubuntu-latest
11
+
12
12
steps :
13
- - name : Checkout repository
14
- uses : actions/checkout@v4
13
+ - name : Checkout code
14
+ uses : actions/checkout@v4
15
+ with :
16
+ ref : ${{ github.ref }}
17
+
18
+ - name : Zip the repository
19
+ run : |
20
+ zip -r latest.zip . -x ".gitignore" ".github"
15
21
16
- - name : Upload artifact
17
- uses : actions/upload-artifact@v4
18
- with :
19
- name : staging2live-latest
20
- path : |
21
- *
22
- !.gitignore
23
- !.github
22
+ - name : Commit latest.zip
23
+ run : |
24
+ git config user.name "GitHub Actions Bot"
25
+ git config user.email "<>"
26
+ git add latest.zip
27
+ git commit -m "Update latest.zip" || echo "No changes to commit"
28
+ git push origin ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments