From 1db834f7211ff5b26dbbcc61690853e69814f83d Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 12 Jan 2025 12:30:42 +1100 Subject: [PATCH] Added deploy workflow file --- .github/workflows/pages-deploy.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/pages-deploy.yml diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml new file mode 100644 index 0000000..0693ed8 --- /dev/null +++ b/.github/workflows/pages-deploy.yml @@ -0,0 +1,38 @@ +name: Build and deploy the pages mirror + +on: + push: + branches: ["mirror"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file