Skip to content

Commit

Permalink
split release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
realshuting committed Nov 24, 2020
1 parent 3404799 commit ff8111b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,40 @@ jobs:
echo ">>> Run Kyverno e2e test"
make test-e2e
kyvernocli-and-helm:
create-release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
-
name: Unshallow

- name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- uses: creekorful/[email protected]

-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-helm:
runs-on: ubuntu-latest
steps:
- uses: J12934/helm-gh-pages-action@master
name: Run Helm Publish
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
access-token: ${{ secrets.GITHUB_TOKEN }}
deploy-branch: gh-pages
charts-folder: charts

publish-cli-via-krew:
runs-on: ubuntu-latest
steps:
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
version: latest
args: --rm-dist --skip-publish --snapshot
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Kyverno Test
run: |
Expand Down

0 comments on commit ff8111b

Please sign in to comment.