Skip to content

Commit

Permalink
feat: goreleaser in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
brittonhayes committed Jan 12, 2024
1 parent bfc18ab commit 1d025ee
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,50 @@
name: Release
name: Release

on:
push:
tags:
- v*

permissions:
contents: write
packages: write

env:
REGISTRY: ghcr.io
IMAGE_NAME: brittonhayes/psych

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
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@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@v2
Expand Down

0 comments on commit 1d025ee

Please sign in to comment.