diff --git a/.goreleaser.yml b/.goreleaser.yml index 91c3d86..273a4ee 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,14 @@ version: 2 +before: + hooks: + - "cp plugin.json plugin.json.orig" + - "sed -i.bak 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' plugin.json && rm -f plugin.json.bak" + +after: + hooks: + - "mv plugin.json.orig plugin.json" + builds: - main: ./cmd/workflow-plugin-authz binary: workflow-plugin-authz diff --git a/plugin.json b/plugin.json index bbc4481..9e66602 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "workflow-plugin-authz", - "version": "1.0.0", + "version": "0.0.0-dev", "description": "RBAC authorization plugin using Casbin", "author": "GoCodeAlone", "license": "MIT",