Skip to content

Commit

Permalink
feat(actions): adding builds for non-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfordwagner authored Mar 15, 2024
1 parent b019ea2 commit 18197de
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 29 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go_releaser_branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: go_releaser_branches
on:
- push
- workflow_dispatch
jobs:
go-releaser-branches:
runs-on: ubuntu-latest
steps:
- name: checkout=self
uses: actions/checkout@v4
- name: task=3.35.1
uses: pnorton5432/setup-task@v1
with:
task-version: 3.35.1
- name: checkout=taskfiles
uses: actions/checkout@v4
with:
path: taskfiles
repository: bradfordwagner/taskfiles
- name: go=1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: goreleaser=1.24.0
uses: goreleaser/goreleaser-action@v5
with:
version: 1.24.0
install-only: true
- name: task=branches
run: task -t ./taskfiles/tasks/go_releaser.yml is_tag=false
env:
GITHUB_TOKEN: ${{ github.token }}
33 changes: 33 additions & 0 deletions .github/workflows/go_releaser_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: go_releaser_tags
on:
push:
tags:
- '*'
jobs:
go-releaser-tags:
runs-on: ubuntu-latest
steps:
- name: checkout=self
uses: actions/checkout@v4
- name: task=3.35.1
uses: pnorton5432/setup-task@v1
with:
task-version: 3.35.1
- name: checkout=taskfiles
uses: actions/checkout@v4
with:
path: taskfiles
repository: bradfordwagner/taskfiles
- name: go=1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: goreleaser=1.24.0
uses: goreleaser/goreleaser-action@v5
with:
version: 1.24.0
install-only: true
- name: task=tags
run: task -t ./taskfiles/tasks/go_releaser.yml is_tag=true
env:
GITHUB_TOKEN: ${{ github.token }}
29 changes: 0 additions & 29 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 18197de

Please sign in to comment.