mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-05-11 02:28:22 +00:00
44 lines
No EOL
1,019 B
YAML
44 lines
No EOL
1,019 B
YAML
name: goreleaser
|
|
|
|
on:
|
|
push:
|
|
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
-
|
|
name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
-
|
|
name: Generate Man and Completions
|
|
run: |
|
|
mkdir completion
|
|
go run main.go completion bash > completion/bash
|
|
go run main.go completion zsh > completion/zsh
|
|
go run main.go completion fish > completion/fish
|
|
go run main.go completion powershell > completion/powershell
|
|
mkdir man
|
|
go run main.go gendoc --type man
|
|
pwd
|
|
ls
|
|
-
|
|
name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |