Skip to content

Commit

Permalink
feat: add action plugin workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdh committed Sep 11, 2023
1 parent 3362504 commit 9e2879e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

jobs:
release:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release_cortex_provider_plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Cortex plugin

on:
workflow_dispatch:
push:
tags:
- "plugin-v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
workdir: ${{ github.workspace }}/plugins/providers/cortex
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}

0 comments on commit 9e2879e

Please sign in to comment.