Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
viktordanov committed Jul 20, 2021
1 parent b2ac31c commit 795c522
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Building for Linux
run: GOOS=linux GOARCH=amd64 go build -o abacus
- name: Building for Windows
run: GOOS=windows GOARCH=amd64 go build -o abacus.exe
- name: Build step
run: |
GOOS=windows GOARCH=amd64 go build -o abacus-windows-amd64.exe
GOOS=linux GOARCH=amd64 go build -o abacus-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o abacus-macos-amd64
- name: Set version tag
run: echo "VERSION_TAG=$(./abacus --version)" >> $GITHUB_ENV
run: echo "VERSION_TAG=$(./abacus-linux-amd64 --version)" >> $GITHUB_ENV
- uses: ncipollo/release-action@v1
with:
artifacts: "abacus,abacus.exe"
artifacts: "abacus-*"
commit: main
tag: ${{ env.VERSION_TAG }}
name: abacus ${{ env.VERSION_TAG }}
Expand Down

0 comments on commit 795c522

Please sign in to comment.