update dependencies #53
Workflow file for this run
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
name: Build | |
# on: | |
# push: | |
# branches: [ master ] | |
# pull_request: | |
# branches: [ master ] | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.15 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: | | |
go get github.com/dmwm/cmsauth | |
go get github.com/dmwm/das2go | |
go get github.com/vkuznet/x509proxy | |
go get github.com/buger/jsonparser | |
go get github.com/pkg/profile | |
go get github.com/stretchr/testify | |
- name: Build | |
run: | | |
make build_all | |
- 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 binary | |
id: upload-dasgoclient_amd64 | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dasgoclient_amd64 | |
asset_name: dasgoclient_amd64 | |
asset_content_type: application/octet-stream | |
- name: Upload windows binary | |
id: upload-dasgoclient_windows | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dasgoclient.exe | |
asset_name: dasgoclient.exe | |
asset_content_type: application/octet-stream | |
- name: Upload Power8 binary | |
id: upload-dasgoclient_ppc64le | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dasgoclient_ppc64le | |
asset_name: dasgoclient_ppc64le | |
asset_content_type: application/octet-stream | |
- name: Upload ARM64 binary | |
id: upload-dasgoclient_aarch64 | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dasgoclient_aarch64 | |
asset_name: dasgoclient_aarch64 | |
asset_content_type: application/octet-stream | |
- name: Upload OSX/macOS binary | |
id: upload-dasgoclient_osx | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dasgoclient_osx | |
asset_name: dasgoclient_osx | |
asset_content_type: application/octet-stream | |
- name: Upload OSX/macOS ARM64 binary | |
id: upload-dasgoclient_osx_aarch64 | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dasgoclient_osx_aarch64 | |
asset_name: dasgoclient_osx_aarch64 | |
asset_content_type: application/octet-stream |