Skip to content

Commit

Permalink
Adjust gh workflows
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Riguera <[email protected]>
  • Loading branch information
CemDK and jriguera committed Mar 14, 2024
1 parent 0e286c5 commit b2f84d2
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ permissions:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
#concurrency:
#group: "pages"
#cancel-in-progress: false
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
Expand Down
53 changes: 52 additions & 1 deletion .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,55 @@ jobs:
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts" || echo "::warning title=Helm push::Helm push artifact to GH Registry has failed!"
done
env:
TOKEN: "${{ secrets.GITHUB_TOKEN }}"
TOKEN: "${{ secrets.GITHUB_TOKEN }}"

# Build job
build-pages:
needs:
- make
- build-image
- release-chart
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "gh-pages"

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy-pages:
needs:
- make
- build-image
- release-chart
- build-pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit b2f84d2

Please sign in to comment.