no travis ci, eh #24
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
name: webhooker CI | |
on: [push] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
- run: go mod download | |
- run: pip install prysk | |
- run: make test | |
release: | |
needs: tests | |
if: github.ref_type == 'tag' && github.repository_owner == 'piranha' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
- run: make all | |
- name: Publish release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: build/*.gz | |
tag_name: ${{ github.ref_name }} |