-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: apimonkey
- Loading branch information
Showing
5 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: docker build -t temp . | ||
- run: docker run -v $(pwd)/tmpdist:/tmpdist temp sh -c "cp /dist/com.ftt.apimonkey.sdPlugin.zip /tmpdist/com.ftt.apimonkey.sdPlugin.zip" | ||
- name: release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: false | ||
prerelease: false | ||
release_name: v.0.1.${{ github.run_number }}-apimonkey | ||
tag_name: v.0.1.${{ github.run_number }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: upload windows artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: tmpdist/com.ftt.apimonkey.sdPlugin.zip | ||
asset_name: com.ftt.apimonkey.sdPlugin.zip | ||
asset_content_type: application/octet-stream |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: sleep 60 | ||
# - run: exit 1 | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ pkg/github/github_test.go | |
cmd/client/apimonkey/dist/ | ||
|
||
cmd/server/githubmonkey/dist/ | ||
|
||
tmpdist/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM golang:latest | ||
RUN apt-get update && apt-get install zip git -y | ||
ADD . /src | ||
WORKDIR /src/cmd/client/apimonkey | ||
RUN GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o com.ftt.apimonkey.exe | ||
RUN mkdir -p /dist/com.ftt.apimonkey.sdPlugin | ||
RUN cp -r ./resources/* /dist/com.ftt.apimonkey.sdPlugin/ | ||
RUN cp com.ftt.apimonkey.exe /dist/com.ftt.apimonkey.sdPlugin/ | ||
WORKDIR /dist | ||
RUN zip -r com.ftt.apimonkey.sdPlugin.zip com.ftt.apimonkey.sdPlugin |
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