updated ci jobs #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
PKG_TAG: ${{ github.event.release.tag_name }} | |
jobs: | |
release: | |
name: Release on GitHub | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: write | |
pages: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ~1.23 | |
- name: Setup golang caches | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/gocache-for-docker | |
key: ${{ runner.os }}-golang-${{ hashFiles('go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: Setup node caches | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/.cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Build plugin | |
run: | | |
yq -iP '.version="${{ env.PKG_TAG }}"' package.json -o json | |
make vm-plugin-release | |
- name: Upload release assets | |
run: | | |
gh release upload ${{ env.PKG_TAG }} $(ls dist) --clobber || echo "fix me NOT enough security permissions" |