Skip to content

fix

fix #22

Workflow file for this run

name: Go
on:
push:
tags:
- '*'
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
build:
name: build
strategy:
matrix:
go-arch: [amd64]
go-os: [linux]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download dependencies
run: go mod download
- name: Build
run: env GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -o ./build/jbackup-${{ matrix.go-os }}-${{ matrix.go-arch }} .
- name: store build output
uses: actions/upload-artifact@v3
with:
name: build artifacts
path: build
release:
name: release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: build
- name: publish release
uses: ncipollo/release-action@v1
with:
artifacts: "build/build\ artifacts/*"
token: ${{ secrets.GITHUB_TOKEN }}