Skip to content

Commit

Permalink
add prelease pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckSoft authored Dec 24, 2020
1 parent 25bbfe9 commit 9bc8adf
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]

release:
types: [prereleased]

jobs:
build:
Expand Down Expand Up @@ -44,6 +45,15 @@ jobs:
with:
name: gun-dedicated-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
path: gun-dedicated-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
- name: Upload dedicated release
uses: svenstaro/upload-release-action@v1-release
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: gun-dedicated-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
asset_name: gun-dedicated-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
tag: ${{ github.ref }}
overwrite: true
- name: Build SIP003 plugin
env:
GOOS: ${{ matrix.GOOS }}
Expand All @@ -55,3 +65,12 @@ jobs:
with:
name: gun-sip003-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
path: gun-sip003-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
- name: Upload SIP003 plugin release
uses: svenstaro/upload-release-action@v1-release
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: gun-sip003-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
asset_name: gun-sip003-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 9bc8adf

Please sign in to comment.