Skip to content

Commit

Permalink
Adjust GitHub action build name / env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Mar 8, 2020
1 parent 2d11543 commit 135f8c8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI
name: build
on: [push]

jobs:
ci:
name: CI
build:
name: build
runs-on: ubuntu-latest
steps:

Expand All @@ -15,28 +15,28 @@ jobs:
run: |
echo "::add-path::${{ github.workspace }}/go/bin"
echo "::set-env name=GOPATH::${{ github.workspace }}/go"
echo "::set-env name=DOTS_PATH::${{ github.workspace }}/go/src/github.com/${{ github.repository }}"
echo "::set-env name=GO_WORKSPACE::${{ github.workspace }}/go/src/github.com/${{ github.repository }}"
- uses: actions/checkout@v2
with:
path: ${{ env.DOTS_PATH }}
path: ${{ env.GO_WORKSPACE }}

- name: Checkout tags
run: |
cd ${{ env.DOTS_PATH }}
cd ${{ env.GO_WORKSPACE }}
git fetch --prune --unshallow
- name: Verify
run: |
cd ${{ env.DOTS_PATH }}
cd ${{ env.GO_WORKSPACE }}
go get -u golang.org/x/lint/golint
go get ./...
golint -set_exit_status ./...
go test ./...
- name: Build
run: |
cd ${{ env.DOTS_PATH }}
cd ${{ env.GO_WORKSPACE }}
GOARCH=amd64 GOOS=windows make && mv dist/dots{,-windows-amd64.exe}
GOARCH=amd64 GOOS=darwin make && mv dist/dots{,-macos-amd64}
GOARCH=amd64 GOOS=linux make && mv dist/dots{,-linux-amd64}
Expand All @@ -49,7 +49,7 @@ jobs:
prerelease: true
title: Development Build
files: |
${{ env.DOTS_PATH }}/scripts/bootstrap
${{ env.DOTS_PATH }}/dist/dots-linux-amd64
${{ env.DOTS_PATH }}/dist/dots-macos-amd64
${{ env.DOTS_PATH }}/dist/dots-windows-amd64.exe
${{ env.GO_WORKSPACE }}/scripts/bootstrap
${{ env.GO_WORKSPACE }}/dist/dots-linux-amd64
${{ env.GO_WORKSPACE }}/dist/dots-macos-amd64
${{ env.GO_WORKSPACE }}/dist/dots-windows-amd64.exe

0 comments on commit 135f8c8

Please sign in to comment.