Skip to content

Commit

Permalink
Merge pull request #23 from elixir-oslo/fix/release
Browse files Browse the repository at this point in the history
Fix/release
  • Loading branch information
pavelvazquez authored Oct 1, 2024
2 parents d995783 + 0ade541 commit 4133563
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 41 deletions.
68 changes: 28 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,33 @@
name: Release

on:
push:
tags:
- 'v*'
push:
tags:
- 'v*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
go-version: 1.22
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Clean up go.mod and go.sum
run: go mod tidy

- name: Reset repository to a clean state
run: git reset --hard HEAD

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
# key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
goreleaser:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
go-version: 1.22
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Clean up go.mod and go.sum
run: go mod tidy

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/elixir-oslo/lega-commander

go 1.22
go 1.22.2

toolchain go1.22.5

require (
Expand Down

0 comments on commit 4133563

Please sign in to comment.