Skip to content

Commit

Permalink
trying to release
Browse files Browse the repository at this point in the history
  • Loading branch information
polvoazul committed Jul 11, 2024
1 parent 155eb4d commit 4d8763c
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,34 @@ name: Release

on:
push:
branches:
- main
tags:
- "*"


permissions:
contents: write


jobs:
build-and-deploy:
runs-on: 'ubuntu-latest'
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: ['ubuntu-latest', 'macOS-latest']
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

- name: Go setup
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5

with:
go-version: stable
# More assembly might be required: Docker logins, GPG, etc.
# It all depends on your needs.
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: '~> v2'
# 'latest', 'nightly', or a semver
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4d8763c

Please sign in to comment.