mirror of https://github.com/statping/statping
ugh github actions.....
parent
fc1e3b971a
commit
9d3fdaee9b
|
@ -162,6 +162,16 @@ jobs:
|
||||||
node-version: '10.x'
|
node-version: '10.x'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Global Dependencies
|
||||||
|
run: npm install -g yarn sass newman cross-env wait-on @sentry/cli
|
||||||
|
|
||||||
|
- name: Setting ENV's
|
||||||
|
run: |
|
||||||
|
echo "::add-path::$(go env GOPATH)/bin"
|
||||||
|
echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
||||||
|
echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v1
|
||||||
id: golangcache
|
id: golangcache
|
||||||
with:
|
with:
|
||||||
|
@ -179,12 +189,6 @@ jobs:
|
||||||
go mod verify
|
go mod verify
|
||||||
make test-deps
|
make test-deps
|
||||||
|
|
||||||
- name: Setting ENV's
|
|
||||||
run: |
|
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
|
||||||
echo ::set-env name=VERSION::$(cat version.txt)
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Download Compiled Frontend
|
- name: Download Compiled Frontend
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
@ -201,7 +205,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ env.VERSION }}
|
VERSION: ${{ env.VERSION }}
|
||||||
COMMIT: $GITHUB_SHA
|
COMMIT: $GITHUB_SHA
|
||||||
run: make build-bin build-win
|
run: make clean compile build-bin build-win
|
||||||
|
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -195,7 +195,6 @@ clean:
|
||||||
rm -rf {parts,prime,snap,stage}
|
rm -rf {parts,prime,snap,stage}
|
||||||
rm -rf frontend/cypress/videos
|
rm -rf frontend/cypress/videos
|
||||||
rm -f coverage.* sass
|
rm -f coverage.* sass
|
||||||
rm -f source/rice-box.go
|
|
||||||
rm -rf **/*.db-journal
|
rm -rf **/*.db-journal
|
||||||
rm -rf *.snap
|
rm -rf *.snap
|
||||||
find . -name "*.out" -type f -delete
|
find . -name "*.out" -type f -delete
|
||||||
|
|
Loading…
Reference in New Issue