From 29fb381a173ff6c678fdd6ae2116820b3c3da838 Mon Sep 17 00:00:00 2001 From: Alex Ellwein Date: Tue, 28 Feb 2023 11:00:52 +0100 Subject: [PATCH] =?UTF-8?q?feat(ci):=20adapt=20workflow=20to=20deploy=20pa?= =?UTF-8?q?ges=20AFTER=20build=20=F0=9F=8F=97=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit also rename mainstream branch to main --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++-- charts/README.md | 2 +- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3681b14..c4114b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Build Docker image +name: Build Images & Deploy GH Pages on: workflow_dispatch: @@ -21,7 +21,7 @@ jobs: run: docker buildx create --use - name: Build & push Docker image (all architectures) - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' run: | make build-and-push @@ -29,3 +29,35 @@ jobs: if: github.ref == 'refs/heads/develop' run: | make build-local + # Deploy GH Pages + deploy: + if: github.ref == 'refs/heads/main' + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 \ No newline at end of file diff --git a/charts/README.md b/charts/README.md index 91eb087..d39a9cf 100644 --- a/charts/README.md +++ b/charts/README.md @@ -3,7 +3,7 @@ cert-manager-webhook-netcup Helm chart for installation of cert-manager's webhook for solving DNS challenges using Netcup DNS API. -See this [README.md](https://github.com/aellwein/cert-manager-webhook-netcup/blob/master/README.md) +See this [README.md](https://github.com/aellwein/cert-manager-webhook-netcup/blob/main/README.md) for configuration and more details. Release