diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d18911a777..798655b122 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -309,11 +309,12 @@ jobs: runs-on: ubuntu-22.04 needs: [vars, helm-tests] if: ${{ github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-') }} + permissions: + contents: read + packages: write # for helm to push to GHCR steps: - name: Checkout Repository uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - with: - path: nkg - name: Login to GitHub Container Registry uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0 @@ -325,7 +326,7 @@ jobs: - name: Package id: package run: | - output=$(helm package ${{ ! startsWith(github.ref, 'refs/tags/') && '--app-version edge --version 0.0.0-edge' || '' }} nkg/deploy/helm-chart) + output=$(helm package ${{ ! startsWith(github.ref, 'refs/tags/') && '--app-version edge --version 0.0.0-edge' || '' }} deploy/helm-chart) echo "path=$(basename -- $(echo $output | cut -d: -f2))" >> $GITHUB_OUTPUT - name: Push to GitHub Container Registry