File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ name : create-release-artifact
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ create-release-artifact :
9+ name : Creating release artifact
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : checkout
13+ uses : actions/checkout@v2
14+
15+ - name : build artifact
16+ run : composer run package && mv ./tmp/tawk-url-utils.zip tawk-url-utils.zip
17+
18+ - name : upload artifact
19+ uses : actions/upload-release-asset@v1
20+ env :
21+ GITHUB_TOKEN : ${{ github.token }}
22+ with :
23+ upload_url : ${{ github.event.release.upload_url }}
24+ asset_path : ./tawk-url-utils.zip
25+ asset_name : tawk-url-utils.zip
26+ asset_content_type : application/zip
Original file line number Diff line number Diff line change 11/vendor /
22.phpunit. *
33.phpcs.cache
4+ tmp
Original file line number Diff line number Diff line change 2525 ],
2626 "test" : " phpunit" ,
2727 "lint" : " phpcs -p -s -v --runtime-set ignore_warnings_on_exit true ." ,
28- "lint:fix" : " phpcbf -p -s -v .; err=$?; if [ $err -eq 1 ]; then exit 0; else exit $err; fi;"
28+ "lint:fix" : " phpcbf -p -s -v .; err=$?; if [ $err -eq 1 ]; then exit 0; else exit $err; fi;" ,
29+ "package" : " composer run clean && mkdir -p ./tmp && cp -rt ./tmp lib composer.json README.md CHANGELOG.md && zip -9 -rq ./tmp/tawk-url-utils.zip ./tmp" ,
30+ "clean" : " rm -rf ./tmp"
2931 }
3032}
You can’t perform that action at this time.
0 commit comments