d1d993a79f
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
36 lines
847 B
YAML
36 lines
847 B
YAML
name: Release
|
|
|
|
# Only a single job with this concurrency can run at any given time
|
|
concurrency: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
release:
|
|
name: "Release"
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
args: release --rm-dist --debug
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_DAGGER_CI_TOKEN }}
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.RELEASE_AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.RELEASE_AWS_SECRET_ACCESS_KEY }}
|
|
AWS_REGION: us-east-1
|