-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd85837
commit 1cbab61
Showing
1 changed file
with
49 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,49 @@ | ||
name: Go | ||
on: | ||
release: | ||
type: | ||
- published | ||
jobs: | ||
|
||
build-and-publish: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code | ||
run: | | ||
git clone https://brannondorsey:[email protected]/brannondorsey/vanity-keygen | ||
echo git remote -v | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get dependencies | ||
working-directory: ./vanity-keygen | ||
run: | | ||
make deps | ||
- name: Build for all platforms | ||
working-directory: ./vanity-keygen | ||
run: make build-all | ||
|
||
- name: Snapshot and Release | ||
working-directory: ./vanity-keygen | ||
run: make snapshot | ||
|
||
- name: Upload artifacts | ||
uses: skx/github-action-publish-binaries@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: 'vanity-keygen/bin/*.zip vanity-keygen/bin/*.tar.gz' | ||
## Unused, because I was having an issue where the on.release.type.* would trigger three | ||
## concurrent workflows at once. Should be ready to come back and enable if that problem | ||
## get solved / I ever have interest again. Disabling for now. Manual releases can be | ||
## made via git tag. | ||
|
||
# name: Go | ||
# on: | ||
# release: | ||
# type: | ||
# - published | ||
# jobs: | ||
|
||
# build-and-publish: | ||
# name: Build | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
|
||
# - name: Set up Go 1.13 | ||
# uses: actions/setup-go@v1 | ||
# with: | ||
# go-version: 1.13 | ||
# id: go | ||
|
||
# - name: Check out code | ||
# run: | | ||
# git clone https://brannondorsey:[email protected]/brannondorsey/vanity-keygen | ||
# echo git remote -v | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Get dependencies | ||
# working-directory: ./vanity-keygen | ||
# run: | | ||
# make deps | ||
|
||
# - name: Build for all platforms | ||
# working-directory: ./vanity-keygen | ||
# run: make build-all | ||
|
||
# - name: Snapshot and Release | ||
# working-directory: ./vanity-keygen | ||
# run: make snapshot | ||
|
||
# - name: Upload artifacts | ||
# uses: skx/github-action-publish-binaries@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# args: 'vanity-keygen/bin/*.zip vanity-keygen/bin/*.tar.gz' |