From fa1f90a8fcc6c744b58f44226278c492c91a7fa3 Mon Sep 17 00:00:00 2001 From: Twinki Date: Sun, 29 Sep 2024 02:21:49 -0400 Subject: [PATCH] Publish pages --- .github/workflows/build.yml | 2 +- .github/workflows/pages-deploy.yml | 40 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pages-deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8283a31..f804d3d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: - name: Setup - GitVersion uses: gittools/actions/gitversion/setup@v3.0 with: - versionSpec: 6.x + versionSpec: 5.12.0 - name: Setup - Bun uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml new file mode 100644 index 0000000..79dd4f7 --- /dev/null +++ b/.github/workflows/pages-deploy.yml @@ -0,0 +1,40 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Pages - Deploy + +on: + push: + branches: gh-pages + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + deploy: + environment: + name: Pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: gh-pages + + - name: Setup - Pages + uses: actions/configure-pages@v5 + + - name: Upload - Artifacts + uses: actions/upload-pages-artifact@v3 + with: + path: '.' + + - name: Deploy - Pages + id: deployment + uses: actions/deploy-pages@v4