Skip to content

Commit

Permalink
Update CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Feb 27, 2021
1 parent 8dfad8c commit e26c4dd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,26 @@ jobs:
with:
name: "OpenRCT2 DevTools"
path: out/devtools.min.js
- name: Get the version
if: startsWith(github.ref, 'refs/tags/v')
run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: actions/create-release@v1
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.version }}
release_name: Release v${{ env.version }}
prerelease: false
- name: Upload Release Asset
uses: actions/[email protected]
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: out/devtools.min.js
asset_name: devtools.min.js
asset_content_type: text/javascript

0 comments on commit e26c4dd

Please sign in to comment.