mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
github: run build before we create the release
This commit is contained in:
parent
97df33dcd1
commit
0a2b34b32c
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
|
@ -16,6 +16,20 @@ jobs:
|
|||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16.6
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "16"
|
||||
- name: Build
|
||||
run: |
|
||||
npm install --global yarn
|
||||
(cd frontend && yarn install)
|
||||
make dist VERSION=${{ steps.get_version.outputs.VERSION }}
|
||||
shell: bash
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
|
@ -31,20 +45,6 @@ jobs:
|
|||
- Second Change
|
||||
draft: true
|
||||
prerelease: false
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16.6
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "16"
|
||||
- name: Build
|
||||
run: |
|
||||
npm install --global yarn
|
||||
(cd frontend && yarn install)
|
||||
make dist VERSION=${{ steps.get_version.outputs.VERSION }}
|
||||
shell: bash
|
||||
- name: Upload slim Linux amd64
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue
Block a user