GH action coverage and release

pull/508/head
hunterlong 2020-04-17 02:30:12 -07:00
parent d81566e119
commit c41f398c2f
1 changed files with 14 additions and 9 deletions

View File

@ -152,7 +152,7 @@ jobs:
TWILIO_TO: ${{ secrets.TWILIO_TO }} TWILIO_TO: ${{ secrets.TWILIO_TO }}
- name: Coveralls Testing Coverage - name: Coveralls Testing Coverage
run: goveralls -coverprofile=coverage.out -service=travis -repotoken $COVERALLS run: goveralls -coverprofile=coverage.out -repotoken $COVERALLS
env: env:
COVERALLS: ${{ secrets.COVERALLS }} COVERALLS: ${{ secrets.COVERALLS }}
@ -194,12 +194,6 @@ jobs:
COMMIT: $GITHUB_SHA COMMIT: $GITHUB_SHA
run: make build-bin build-win run: make build-bin build-win
- name: Upload Compiled Binaries
uses: actions/upload-artifact@v1
with:
name: statping-bins
path: /home/runner/work/statping/statping/build/*
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: actions/create-release@latest uses: actions/create-release@latest
@ -208,11 +202,22 @@ jobs:
VERSION: $(cat version.txt) VERSION: $(cat version.txt)
with: with:
tag_name: v$(cat version.txt) tag_name: v$(cat version.txt)
release_name: Release v$(cat version.txt) release_name: Statping v$(cat version.txt)
body: Statping v$(cat version.txt) body: Version v$(cat version.txt)
draft: false draft: false
prerelease: false prerelease: false
- name: Upload Release Binaries
id: upload-release-asset
uses: actions/upload-release-asset@v1
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
pattern: |
"build/*.tar.gz"
"build/*.zip"
post-release: post-release:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest