Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwu51 authored Apr 21, 2024
1 parent e76cb68 commit 02649b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and Release

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

Expand Down Expand Up @@ -54,9 +56,13 @@ jobs:
path: release-${{ matrix.goos }}-${{ matrix.goarch }}.zip

release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
goos: [windows, darwin, linux]
goarch: [arm64, amd64]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 02649b1

Please sign in to comment.