Skip to content

Fix panic on missing root event type for k8s source (#1481) #293

Fix panic on missing root event type for k8s source (#1481)

Fix panic on missing root event type for k8s source (#1481) #293

name: Publish plugins
on:
push:
branches:
- main
jobs:
publish_plugins:
runs-on: ubuntu-latest
env:
GO111MODULE: on
GOPATH: /home/runner/work/botkube
GOBIN: /home/runner/work/botkube/bin
steps:
- name: Checkout
uses: actions/checkout@v4
- name: GCP auth
uses: 'google-github-actions/auth@v1'
with:
credentials_json: ${{ secrets.PLUGINS_BUCKET_CREDENTIALS }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup 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 all plugins into dist directory
env:
GORELEASER_CURRENT_TAG: "v0.0.0-latest"
PLUGIN_DOWNLOAD_URL_BASE_PATH: "https://storage.googleapis.com/botkube-plugins-latest"
OUTPUT_MODE: "archive"
run: |
make gen-plugins-index
- name: Upload plugins to GCS
uses: google-github-actions/upload-cloud-storage@v1
with:
path: 'plugin-dist'
destination: 'botkube-plugins-latest/'
glob: '*.tar.gz'
parent: false
- name: Upload plugin index to GCS
uses: google-github-actions/upload-cloud-storage@v1
with:
path: 'plugins-index.yaml'
destination: 'botkube-plugins-latest/'
- name: Upload plugin index to GCS
uses: google-github-actions/upload-cloud-storage@v1
with:
path: 'plugins-dev-index.yaml'
destination: 'botkube-plugins-latest/'
- name: 'Disable caching'
run: 'gsutil -m setmeta -h "Cache-Control: no-cache, no-store" gs://botkube-plugins-latest/*'