Skip to content

Commit

Permalink
Restore functionality to update the website when a release is created (
Browse files Browse the repository at this point in the history
  • Loading branch information
jgiannuzzi authored Oct 18, 2023
1 parent b347b8f commit b24c6a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ jobs:
needs: all-required-checks-done
if: ${{ !github.event.repository.fork && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') }}
permissions:
actions: write
contents: write
pages: write
id-token: write
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
steps:
- name: Download artifact
Expand All @@ -46,16 +47,12 @@ jobs:
files: dist/*
prerelease: ${{ contains(github.ref, '-') }}

update-website:
name: Update website
needs: github-release
if: ${{ !contains(github.ref, '-') }}
permissions:
contents: read
pages: write
id-token: write
uses: ./.github/workflows/website.yml

- name: Trigger website update
if: ${{ !contains(github.ref, '-') }}
env:
GH_TOKEN: ${{ github.token }}
run: gh workflow run --repo ${{ github.repository }} website.yml

docker-release:
name: Publish container image to DockerHub
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- "website/**"
- "docs/**"
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
workflow_call: # Allows you to run this workflow from another workflow

permissions: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
contents: read
Expand Down

0 comments on commit b24c6a0

Please sign in to comment.