Skip to content

This example demonstrates how to publish your Go multi platform binaries on Valist.

Notifications You must be signed in to change notification settings

valist-io/example-go-multi-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Multi Platform Example

This example demonstrates how to publish your Go multi platform binaries on Valist.

Click here to view this project on Valist.

Publish with the Valist GitHub Action

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

Publish with the Valist CLI

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

About

This example demonstrates how to publish your Go multi platform binaries on Valist.

Resources

Stars

Watchers

Forks

Packages

No packages published