Skip to content

update github.com/gin-gonic/gin #13

update github.com/gin-gonic/gin

update github.com/gin-gonic/gin #13

Workflow file for this run

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: >
export GOTIFY_VERSIONS="v2.5.0 v2.4.0 v2.3.0 v2.2.5 v2.2.4 v2.2.3 v2.2.2 v2.2.1 v2.2.0 v2.1.7 v2.1.6";
for TARGET in $GOTIFY_VERSIONS; do
make GOTIFY_VERSION="$TARGET" FILE_SUFFIX="-for-gotify-$TARGET" build || exit 1
done
- name: "Upload plugin"
uses: actions/upload-artifact@v2
with:
name: gotify-plugin
path: build
- uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
artifacts: "build/*"