Skip to content

Commit

Permalink
chore(wf): switch to composite wf
Browse files Browse the repository at this point in the history
  • Loading branch information
hibare committed Dec 23, 2023
1 parent 7bb1ec5 commit d598e35
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/goreleaser.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test-build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test, Build & Publish

on:
push:
tags:
- "v*"
pull_request:
branches:
- "main"
- "dev"
paths-ignore:
- "**/README.md"
- "**/.github"
- "**/.vscode"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
test-build-publish:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Goreleaser
uses: hibare/.github/github/shared-workflows/goreleaser@0962b9d76360405b3c4bf78f91424b7905bb03a8 # v0.3.0
with:
args: ${{ github.event_name == 'pull_request' && 'build --snapshot --clean' || 'release --clean' }}
sign: ${{ github.event_name != 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}

0 comments on commit d598e35

Please sign in to comment.