Only uploads plugins .so on release #6
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: "Build Plugin" | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: "Download tools and dependencies" | |
run: | |
make download-tools && go get -d | |
- name: "Run tests" | |
run: go test ./... | |
- name: "Build plugin" | |
run: make build | |
- uses: ncipollo/release-action@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
artifacts: "build/*.so" |