Fixed dxw plugin dependencies and added deploy to NPM registry #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- 'v*-voyager' | |
name: Create Release | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Tag Name | |
id: tag_name | |
run: | | |
echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/} | |
- name: Set Version | |
run: echo ${TAG_NAME} > src/main/resources/insider-version | |
- name: Build | |
run: gradle clean build | |
- name: Prepare Assets | |
run: | | |
mkdir insider | |
mkdir insider/results | |
cp README.md insider/README.md | |
cp build/libs/insider*.jar insider/insider.jar | |
cp bin/insider.sh insider/insider.sh | |
chmod +x insider/insider.sh | |
cp bin/insider.bat insider/insider.bat | |
cp instrument.yml insider/instrument.yml | |
cp languages.yml insider/languages.yml | |
cp -R config insider/config | |
- name: Create Archive | |
run: zip -r insider.zip insider | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Insider ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./insider.zip | |
asset_name: insider-voyager.zip | |
asset_content_type: application/zip |