Skip to content

Build Release

Build Release #1

Workflow file for this run

on:
release:
types:
- published
name: Build Release
permission:

Check failure on line 6 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Build Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 6, Col: 1): Unexpected value 'permission' .github/workflows/release.yml (Line: 10, Col: 5): Unexpected value 'permission'
contents: read
jobs:
kmeshctl assets:
permission:
contents: write # for softprops/action-gh-release to create GitHub release
name: release kmeshctl
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
target:
- kmeshctl
os:
- linux
arch:
- amd64
- arm64
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4.0.0
with:
go-version-file: go.mod
- name: Making and packaging
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: make build-kmeshctl OUT=kmeshctl-${{ matrix.os }}-${{ matrix.arch }}
- name: Uploading kmeshctl assets
if: ${{ !env.ACT }}
uses: softprops/action-gh-release@v2
with:
files: |
kmeshctl-${{ matrix.os }}-${{ matrix.arch }}
kmesh-helm:
permission:
contents: write # for softprops/action-gh-release to create GitHub release
name: Release helm
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Making helm package
env:
VERSION: ${{ github.ref_name }}
run: make helm-package CHART_VERSION=${{ github.ref_name }}
- name: Uploading kmesh helm package
if: ${{ !env.ACT }}
uses: softprops/action-gh-release@v2
with:
files: |
out/charts/kmesh-helm-${{ github.ref_name }}.tgz