File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 name : " OpenRCT2 DevTools"
2323 path : out/devtools.min.js
24+ - name : Get the version
25+ if : startsWith(github.ref, 'refs/tags/v')
26+ run : echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
27+ - name : Create release
28+ id : create_release
29+ uses : actions/create-release@v1
30+ if : startsWith(github.ref, 'refs/tags/v')
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ with :
34+ tag_name : v${{ env.version }}
35+ release_name : Release v${{ env.version }}
36+ prerelease : false
37+ - name : Upload Release Asset
38+ uses : actions/upload-release-asset@v1.0.2
39+ if : startsWith(github.ref, 'refs/tags/v')
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ with :
43+ upload_url : ${{ steps.create_release.outputs.upload_url }}
44+ asset_path : out/devtools.min.js
45+ asset_name : devtools.min.js
46+ asset_content_type : text/javascript
You can’t perform that action at this time.
0 commit comments