Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
ci 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
심승용 committed May 14, 2020
1 parent d66e964 commit 52d437f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Build
run: |
cd ~/go/src/github.com/${GITHUB_REPOSITORY}
GOOS=windows GOARCH=386 go build -o lsbeat_x86.exe -ldflags "-X main.qualifier=syshim"
GOOS=windows GOARCH=386 go build -o lsbeat_x86.exe -ldflags "-X main.qualifier=mirero-test"
cp lsbeat_x86.exe ~/release/lsbeat_x86.exe
cd ~
pwd
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:

- id: get_version
uses: seungyongshim/[email protected]
- name: Get Release
id: get_release
uses: bruceadams/[email protected]
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
Expand Down Expand Up @@ -51,7 +55,7 @@ jobs:
- name: Build
run: |
cd ~/go/src/github.com/${GITHUB_REPOSITORY}
GOOS=windows GOARCH=386 go build -o lsbeat_x86.exe -ldflags "-X main.qualifier=syshim"
GOOS=windows GOARCH=386 go build -o lsbeat_x86.exe -ldflags "-X main.qualifier=mirero"
cp lsbeat_x86.exe ~/release/lsbeat_x86.exe
cd ~
pwd
Expand All @@ -64,23 +68,12 @@ jobs:
# Directory containing files to upload
path: ../../.././release

- 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: true

- name: Upload Release Asset
uses: actions/[email protected]
env:
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
upload_url: ${{ steps.get_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: ../../.././release/lsbeat_x86.exe
asset_name: lsbeat.exe
asset_content_type: application/octet-stream

0 comments on commit 52d437f

Please sign in to comment.