Skip to content

Commit

Permalink
Merge pull request #14 from gomicro/build
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
dan9186 authored Aug 31, 2021
2 parents fc953d1 + 458378b commit c6dbc63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ jobs:
name: Test
runs-on: ubuntu-latest

env:
GOPATH: ${{ github.workspace }}

steps:

- name: Install Go
uses: actions/setup-go@v2
with:
Expand All @@ -49,11 +45,11 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')

env:
GOPATH: ${{ github.workspace }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

steps:

- name: Install Go
uses: actions/setup-go@v2
with:
Expand All @@ -63,13 +59,14 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 1
path: ./src/github.com/${{ github.repository }}

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
install-only: true

- name: Build Forge
run: go build

- name: Deploy
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}
run: forge deploy
run: ./forge deploy
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
forge
#Binaries
/forge

0 comments on commit c6dbc63

Please sign in to comment.