Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
Signed-off-by: Abhimanyu121 <abhimanyushekhawat17.as@gmail.com>
  • Loading branch information
Abhimanyu121 committed Oct 23, 2020
1 parent c0ed20a commit 35dcf87
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: make output dir
run: mkdir output
- name: Get dependencies
run: |
cd easyDoser-server/
Expand All @@ -31,24 +32,22 @@ jobs:
dep ensure
fi
- name: Build
run: cd easyDoser-server/ && go build -v .
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'easyDoser-server/easeDoser-server'

- uses: actions/checkout@v2
run: cd easyDoser-server/ && go build -o server && cp server ../output/
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: cd easyDoser-frontend && rm -rf node_modules && rm -rf package-lock.json && npm install
- run: cd easyDoser-frontend && npm run build --if-present
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'easyDoser-frontend/build'
- name: copy output
run: cp -r easyDoser-frontend/build output/frontend
- uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r release.zip output
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release.zip
asset_name: easyDoser.zip
tag: 1.1

0 comments on commit 35dcf87

Please sign in to comment.