Fixed dxw plugin dependencies and added deploy to NPM registry #12
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: Release Voyager | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build | |
run: mvn clean install | |
- name: Prepare Assets | |
run: | | |
mkdir depminer | |
mkdir depminer/results | |
cp README.md depminer/README.md | |
cp target/depminer.jar depminer/depminer.jar | |
cp instrument.yml depminer/instrument.yml | |
cp depminer.yml depminer/depminer.yml | |
cp .ignore.yml depminer/.ignore.yml | |
- name: Create Archive | |
run: zip -r depminer.zip depminer | |
- name: Extract Semver | |
id: semver_parser | |
run: | | |
semver=${TAG#"refs/tags/v"} | |
semver=${semver%"-voyager"} | |
echo ::set-output name=semver::$semver | |
env: | |
TAG: ${{ github.ref }} | |
- name: Prepare Release Notes | |
run: touch ${{ github.workspace }}/releaseNotes/v${{ steps.semver_parser.outputs.semver }}.md | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Depminer ${{ steps.semver_parser.outputs.semver }} (Voyager) | |
body_path: ${{ github.workspace }}/releaseNotes/v${{ steps.semver_parser.outputs.semver }}.md | |
body: "" | |
prerelease: false | |
draft: false | |
fail_on_unmatched_files: true | |
files: depminer.zip |