Skip to content

Commit

Permalink
Remove real release stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Feb 28, 2024
1 parent e27b215 commit 8978b92
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
tags:
- 'v*'
branches:
- "mac-packaging"
jobs:
goreleaser:
runs-on: macos-latest
Expand All @@ -23,28 +25,28 @@ jobs:

- run: go run main.go --version

- name: Run GoReleaser (publish)
uses: goreleaser/goreleaser-action@v5
if: ${{ github.event_name != 'pull_request' }}
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Run GoReleaser (publish)
# uses: goreleaser/goreleaser-action@v5
# if: ${{ github.event_name != 'pull_request' }}
# with:
# version: latest
# args: release --clean
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser (dry run)
uses: goreleaser/goreleaser-action@v5
if: ${{ github.event_name == 'pull_request' }}
# if: ${{ github.event_name == 'pull_request' }}
with:
version: latest
args: release --clean --snapshot --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload assets
uses: actions/upload-artifact@v4
# only upload artifacts on pull requests
if: ${{ github.event_name == 'pull_request' }}
with:
name: test-release
path: dist/*
# - name: Upload assets
# uses: actions/upload-artifact@v4
# # only upload artifacts on pull requests
# if: ${{ github.event_name == 'pull_request' }}
# with:
# name: test-release
# path: dist/*

0 comments on commit 8978b92

Please sign in to comment.