Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
boyhack committed Feb 10, 2022
1 parent e9c4adf commit 20bfbb6
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
matrix:
os:
- windows-latest
# - ubuntu-latest
# - macos-latest
- ubuntu-latest
- macos-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
Expand All @@ -38,13 +38,24 @@ jobs:

- name: Build
run: |
go build -o ./ksubdomain ./cmd/
chmod +x ksubdomain
go build -o ./ksubdomain-${{ runner.os }} ./cmd/
chmod +x ksubdomain-${{ runner.os }}
# tar -cvf ksubdomain-${{ steps.get_version.outputs.VERSION }}-${{ runner.os }}.tar ksubdomain

- name: Upload a build artifact
uses: actions/upload-artifact@v2
# - name: Upload a build artifact
# uses: actions/upload-artifact@v2
# with:
# name: ksubdomain-${{ runner.os }}
# path: ksubdomain
# if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ksubdomain-${{ runner.os }}
path: ksubdomain
if-no-files-found: error
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
files: ksubdomain-${{ runner.os }}
fail_on_unmatched_files: true
token: ${{ secrets.GITHUB_TOKEN }}
append_body: true
env:
GITHUB_REPOSITORY: boy-hack/ksubdomain

0 comments on commit 20bfbb6

Please sign in to comment.