Skip to content

Commit

Permalink
Update build.yml pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
zengkaiwen authored Aug 29, 2023
1 parent 7e90f79 commit b49a262
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: go-build

on:
push:
branches: [ release ]
release:
types: [prereleased]

jobs:
build:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
path: copy2file-${{ matrix.archive-name }}.tar.gz
- name: Release version
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
if: github.event_name == 'release'
with:
allowUpdates: true
artifacts: copy2file-${{ matrix.archive-name }}.tar.gz
Expand Down

0 comments on commit b49a262

Please sign in to comment.