File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Publish release"
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ release :
10
+ name : " Publish release"
11
+ runs-on : " ubuntu-latest"
12
+ steps :
13
+ - name : " Checkout code"
14
+ uses : " actions/checkout@v2"
15
+
16
+ - name : " Setup PHP"
17
+ uses : " shivammathur/setup-php@v2"
18
+ with :
19
+ php-version : " 7.1"
20
+
21
+ - name : " Install dependencies"
22
+ run : " composer update --no-interaction --no-dev --prefer-dist"
23
+
24
+ - name : " Determine tag"
25
+ id : " determine_git_tag"
26
+ shell : " bash"
27
+ run : echo "::set-output name=tag_name::${GITHUB_REF/refs\/tags\//}"
28
+
29
+ - name : " Create directory structure"
30
+ run : |
31
+ mkdir wp-rest-api-auth0
32
+ cp -r LICENSE README.md wp-rest-api-auth0.php vendor/ wp-rest-api-auth0/
33
+
34
+ - name : " Create ZIP file"
35
+ run : " zip -r -9 wp-rest-api-auth0.zip wp-rest-api-auth0-loader.php wp-rest-api-auth0/"
36
+
37
+ - name : " Upload ZIP as release asset"
38
+ uses : " svenstaro/upload-release-action@v2"
39
+ with :
40
+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
41
+ tag : " ${{ github.ref }}"
42
+ file : " wp-rest-api-auth0.zip"
43
+ asset_name : " wp-rest-api-auth0-${{ steps.determine_git_tag.outputs.tag_name }}.zip"
44
+ overwrite : true
You can’t perform that action at this time.
0 commit comments