From 1121a812334bf0beec2483c911afd90225f4b8c0 Mon Sep 17 00:00:00 2001 From: ScriptAutomate Date: Wed, 23 Oct 2024 15:57:55 -0500 Subject: [PATCH] Basic github pages redirect to docs --- .github/workflows/gh-pages.yml | 56 ++++++++++++++++++++++++++++++++++ index.html | 1 + 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/gh-pages.yml create mode 100644 index.html diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..bc21507 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,56 @@ +# Workflow for building and deploying of a simple static site to GitHub Pages +name: Deploy simple static site to Pages + +on: + push: + branches: + - '*' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# 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 + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Prep job + prep: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Prep simple redirect HTML + run: | + mkdir public + cp index.html public/index.html + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: prep + # if: startsWith(github.ref, 'refs/tags/v') + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/index.html b/index.html new file mode 100644 index 0000000..dec3d84 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +