Skip to content

Commit

Permalink
Reset release workflow to only run on release, and add back in gorele…
Browse files Browse the repository at this point in the history
…aser.
  • Loading branch information
IfSentient committed Jun 5, 2024
1 parent 39310e1 commit eba508d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Main
on:
push:
branches:
- notmain
- main

jobs:
test:
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release

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

permissions:
contents: write
Expand Down Expand Up @@ -128,3 +128,26 @@ jobs:
go mod tidy
go build cmd/operator/*.go
go build plugin/pkg/*.go
release:
needs: test
runs-on: ubuntu-latest
steps:
# git checkout
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# Go env
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
# Release
- name: Create Release
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eba508d

Please sign in to comment.