fleet/.github/workflows/goreleaser-orbit.yaml
2021-11-04 19:50:00 -07:00

35 lines
781 B
YAML

name: goreleaser
on:
push:
tags:
- 'orbit-*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: Docker Hub
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed for goreleaser
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ac067437f516133269923265894e77920c3dce18 # v2.6.1
with:
distribution: goreleaser-pro
version: latest
args: release --rm-dist -f orbit/.goreleaser.yml
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}