Skip to content

modify the github action to only happen when a new tag is created and… #1

modify the github action to only happen when a new tag is created and…

modify the github action to only happen when a new tag is created and… #1

Workflow file for this run

name: Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [windows, darwin, linux]
goarch: [amd64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
- name: Build
run: |
export GOOS=${{ matrix.goos }}
export GOARCH=${{ matrix.goarch }}
go build -v ./cmd/servnode
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: servnode-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./servnode