Skip to content

does this work

does this work #24

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags:
- "v*"
jobs:
create-release:

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

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
if: "!contains(github.ref, 'rc')"
runs-on: ubuntu-latest
needs: [build-darwin, build-linux]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
- name: ls
run: ls -R
- name: Fix permissions linux
run: chmod +x kubectl-browse-pvc-linux/kubectl-browse-pvc
- name: Fix permissions darwin
run: chmod +x kubectl-browse-pvc-darwin/kubectl-browse-pvc
- name: Zip linux
uses: montudor/action-zip@v1
with:
args: zip -j kubectl-browse-pvc-linux.zip kubectl-browse-pvc-linux/kubectl-browse-pvc kubectl-browse-pvc-linux/LICENSE
- name: Zip darwin
uses: montudor/action-zip@v1
with:
args: zip -j kubectl-browse-pvc-darwin.zip kubectl-browse-pvc-darwin/kubectl-browse-pvc kubectl-browse-pvc-darwin/LICENSE"
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "kubectl-browse-pvc-darwin.zip,kubectl-browse-pvc-linux.zip"
artifactErrorsFailBuild: true
create-release-candidate:
if: "contains(github.ref, 'rc')"
runs-on: ubuntu-latest
needs: [build-darwin, build-linux]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
- name: ls
run: ls -R
- name: Fix permissions linux
run: chmod +x kubectl-browse-pvc-linux/kubectl-browse-pvc
- name: Fix permissions darwin
run: chmod +x kubectl-browse-pvc-darwin/kubectl-browse-pvc
- name: Zip linux
uses: montudor/action-zip@v1
with:
args: zip -j kubectl-browse-pvc-linux.zip kubectl-browse-pvc-linux/kubectl-browse-pvc kubectl-browse-pvc-linux/LICENSE
- name: Zip darwin
uses: montudor/action-zip@v1
with:
args: zip -j kubectl-browse-pvc-darwin.zip kubectl-browse-pvc-darwin/kubectl-browse-pvc kubectl-browse-pvc-darwin/LICENSE"
- name: Create Release Candidate
id: create_release_candidate
uses: ncipollo/release-action@v1
with:
artifacts: "kubectl-browse-pvc-darwin.zip,kubectl-browse-pvc-linux.zip"
artifactErrorsFailBuild: true
prerelease: true
publish-to-krew:
if: "!contains(github.ref, 'rc')"
runs-on: ubuntu-latest
needs: [create-release]
steps:
- name: Check out Code
uses: actions/[email protected]
- name: Update Krew
uses: rajatjindal/[email protected]