Release: 1.12.9 [azurepipelines skip] #138
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: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Create Release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
npm install | |
npm run build | |
- name: Zip Build | |
uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r build.zip build | |
- name: Create Release | |
uses: "marvinpinto/[email protected]" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
LICENSE.txt | |
*.jar | |
# - name: Create Release | |
# uses: taiki-e/create-gh-release-action@v1 | |
# with: | |
# # (Optional) | |
# # changelog: CHANGELOG.md | |
# # (Optional) Format of title. | |
# # [default value: $tag] | |
# # [possible values: variables $tag, $version, and any string] | |
# title: $version | |
# # (Required) GitHub token for creating GitHub Releases. | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Add Zip Build Artifact | |
uses: AButler/[email protected] | |
with: | |
files: 'build.zip' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
release-tag: ${{ github.ref_name }} | |