Release #34
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
name: Release | |
on: | |
workflow_dispatch: | |
# Inputs the workflow accepts. | |
inputs: | |
ref: | |
description: 'Commit Reference' | |
default: 'master' | |
required: true | |
tag: | |
description: 'Version Tag' | |
default: 'v0.0.0' | |
required: true | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Protoc Go plugin | |
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '19' | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
with: | |
ref: ${{ github.event.inputs.ref }} | |
- name: Test | |
run: | | |
make test | |
- name: Build 🔧 | |
run: | | |
make clean && VERSION=${{ github.event.inputs.tag }} make release | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
commit: ${{ github.event.inputs.ref }} | |
tag: ${{ github.event.inputs.tag }} | |
generateReleaseNotes: true | |
makeLatest: true | |
artifactErrorsFailBuild: true | |
artifacts: | | |
wowsimcli-amd64-linux.zip | |
wowsimcli-windows.exe.zip | |
wowsimwotlk-amd64-darwin.zip | |
wowsimwotlk-arm64-darwin.zip | |
wowsimwotlk-amd64-linux.zip | |
wowsimwotlk-windows.exe.zip | |