Skip to content

Commit

Permalink
ci: release on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Mar 26, 2021
1 parent 4eda5a3 commit bd58530
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ name: release
on:
push:
branches:
- dev
- master
jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-go@v2
with:
go-version: '^1.15.2'
- uses: actions/checkout@v2
- name: Build Cli
run: |
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o gopeed.exe cmd/gopeed/*
Expand All @@ -21,7 +25,7 @@ jobs:
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Cli windows
- name: Upload Cli Windows
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -30,7 +34,7 @@ jobs:
asset_path: ./gopeed-windows-x64.zip
asset_name: gopeed-${{ steps.create_release.outputs.name }}-windows-x64.zip
asset_content_type: application/zip
- name: Upload Cli linux
- name: Upload Cli Linux
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -39,7 +43,7 @@ jobs:
asset_path: ./gopeed-linux-x64.zip
asset_name: gopeed-${{ steps.create_release.outputs.name }}-linux-x64.zip
asset_content_type: application/zip
- name: Upload Cli darwin
- name: Upload Cli Darwin
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: build
name: test

on:
pull_request:
branches:
- dev
push:
branches:
- dev
Expand Down

0 comments on commit bd58530

Please sign in to comment.