mirror of https://github.com/databricks/cli.git
31 lines
718 B
YAML
31 lines
718 B
YAML
name: release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository and submodules
|
|
uses: actions/checkout@v2
|
|
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
|
|
uses: goreleaser/goreleaser-action@v3.1.0
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|