Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger "Update Helm index" workflow for releases #73

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Upload assets to release
name: Process new release

on:
release:
types:
- created

jobs:
build:
runs-on: [ubuntu-latest]
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
Expand Down Expand Up @@ -83,3 +83,23 @@ jobs:
asset_path: ./assets/theia-chart.tgz
asset_name: theia-chart.tgz
asset_content_type: application/octet-stream

update-website:
name: Trigger website update for release
needs: upload-release-assets
runs-on: ubuntu-latest
steps:
- id: get-version
env:
TAG: ${{ github.ref }}
run: |
version=${TAG:10}
echo "::set-output name=version::$version"
- name: Update Helm index with Theia archive
uses: benc-uk/workflow-dispatch@v1
with:
repo: antrea-io/website
ref: refs/heads/main
workflow: Update Helm index
token: ${{ secrets.ANTREA_WEBSITE_WORKFLOW_DISPATCH_PAT }}
inputs: ${{ format('{{ "archive-url":"https://github.com/antrea-io/theia/releases/download/{0}/theia-chart.tgz" }}', steps.get-version.outputs.version) }}