Skip to content

Merge pull request #4 from compscore/options-parameter #18

Merge pull request #4 from compscore/options-parameter

Merge pull request #4 from compscore/options-parameter #18

Workflow file for this run

name: Compile and Release Plugin
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: "1.20"
cache: false
- name: Compile Plugin
run: |
go -trimpath build -o check.so -buildmode=plugin main.go
- name: Create Release
id: create_release
uses: ncipollo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
artifacts: check.so