This example demonstrates how to publish your Go multi platform binaries on Valist.
Click here to view this project on Valist.
See the GitHub Action Quick Start for more info.
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: '^1.17'
- uses: actions/checkout@v2
- run: make all
- uses: valist-io/valist-github-action@v2.3.0
with:
private-key: ${{ secrets.PRIVATE_KEY }}
account: <your-account-name-here>
project: <your-project-name-here>
release: ${{ github.ref_name }}
path: './dist'
install-name: hello
install-darwin-amd64: darwin-amd64/hello
install-darwin-arm64: darwin-arm64/hello
install-linux-amd64: linux-amd64/hello
install-linux-arm64: linux-arm64/hello
install-windows-amd64: linux-amd64/hello.exe
See the CLI Quick Start for more info.
Create a valist.yml
file in your project root.
account: <your-account-name-here>
project: <your-project-name-here>
release: <your-release-name-here>
path: ./dist
install:
name: hello
darwin_amd64: darwin-amd64/hello
darwin_arm64: darwin-arm64/hello
linux_amd64: linux-amd64/hello
linux_arm64: linux-arm64/hello
windows_amd64: linux-amd64/hello.exe
Run the following from your project root.
$ npm run build
$ valist publish