Skip to content

Commit

Permalink
Reorganize workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Nov 13, 2020
1 parent c050884 commit d45e49e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Build

# on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
tags:
- '*.*.*'

jobs:

Expand Down Expand Up @@ -37,3 +41,15 @@ jobs:
GOARCH=ppc64le GOOS=linux go build -ldflags="-s -w -extldflags -static" -o dasgoclient_ppc
GOARCH=arm64 GOOS=linux go build -ldflags="-s -w -extldflags -static" -o dasgoclient_arm
GOOS=linux go build -ldflags="-s -w -extldflags -static" -o dasgoclient_linux
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

21 changes: 5 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Release

# on: release
on: release
# on:
# release:
# types: [created]
on:
push:
tags:
- '*.*.*'
# on:
# push:
# tags:
# - '*.*.*'

jobs:

Expand Down Expand Up @@ -41,17 +41,6 @@ jobs:
GOARCH=arm64 GOOS=linux go build -ldflags="-s -w -extldflags -static" -o dasgoclient_arm
GOOS=linux go build -ldflags="-s -w -extldflags -static" -o dasgoclient_linux
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload linux binaries
uses: skx/github-action-publish-binaries@master
env:
Expand Down

0 comments on commit d45e49e

Please sign in to comment.