Skip to content

Make Botkube Cloud plugins open-source (#49) #29

Make Botkube Cloud plugins open-source (#49)

Make Botkube Cloud plugins open-source (#49) #29

Workflow file for this run

name: Tag build
on:
push:
tags:
- '*'
env:
BUCKET_NAME: botkube-cloud-plugins
GITHUB_TOKEN: ${{ secrets.RELEASE_GH_DEV_ACCOUNT_PAT }}
VERSION: "${{ github.ref_name }}"
jobs:
release:
name: Release plugins
timeout-minutes: 60
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
version: latest
- name: Build plugins and generate plugins index.yaml
env:
PLUGIN_DOWNLOAD_URL_BASE_PATH: "${{ env.VERSION }}"
run: |
make publish-plugins
USE_ARCHIVE=true make gen-plugin-index
- name: Upload plugins index
run: |
gh release upload ${{ env.VERSION }} ./plugins-index.yaml --clobber