Skip to content

Commit

Permalink
try to build in golang image
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Mar 7, 2020
1 parent 2fc9bbd commit bbfd176
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,21 @@ jobs:
build:
name: Build And Upload Release Asset
runs-on: ubuntu-latest
container: golang:1.14.0
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go version
go get -v -d ./...
- name: Build project # This would actually build your project, using zip for an example artifact
run: |
make build-linux
zip -j ./dist/urbs-setting.linux-amd64.zip ./dist/urbs-setting
cd dist
tar -czf urbs-setting.linux-amd64.tar.gz urbs-setting
- name: Create Release
id: create_release
Expand All @@ -46,6 +43,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./dist/urbs-setting.linux-amd64.zip
asset_name: urbs-setting.linux-amd64.zip
asset_content_type: application/zip
asset_path: ./dist/urbs-setting.linux-amd64.tar.gz
asset_name: urbs-setting.linux-amd64.tar.gz
asset_content_type: application/octet-stream

0 comments on commit bbfd176

Please sign in to comment.