databricks-cli/.github/workflows/release.yml

31 lines
718 B
YAML
Raw Normal View History

name: release
on:
push:
tags:
- "v*"
2022-09-08 12:13:43 +00:00
workflow_dispatch:
2022-09-08 11:27:05 +00:00
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
2022-09-08 13:12:26 +00:00
- name: Checkout repository and submodules
uses: actions/checkout@v2
2022-09-08 13:12:26 +00:00
with:
token: ${{ secrets.DECO_GITHUB_TOKEN }}
submodules: recursive
- name: Unshallow
run: git fetch --prune --unshallow
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true
- name: Run GoReleaser
2022-09-08 11:27:05 +00:00
uses: goreleaser/goreleaser-action@v3.1.0
with:
version: latest
args: release --rm-dist
env:
2022-09-08 12:13:43 +00:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}