From 13be36201f80db3f7130d2fa6dea1a16398b50f1 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 26 Aug 2026 21:27:17 -1000 Subject: [PATCH 1/2] Adding deploy to github pages workflow --- .github/workflows/deploy-gh-pages.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deploy-gh-pages.yml diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml new file mode 100644 index 0000000..914b162 --- /dev/null +++ b/.github/workflows/deploy-gh-pages.yml @@ -0,0 +1,41 @@ +name: Deploy to GitHub Pages + +on: + # Trigger the workflow every time you push to the `main` branch + # Using a different branch name? Replace `main` with your branch’s name + push: + branches: [main, add-ghpages-deploy] + # Allows you to run this workflow manually from the Actions tab on GitHub. + workflow_dispatch: + +# Allow this job to clone the repo and create a page deployment +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v7 + - name: Install, build, and upload your site output + uses: withastro/action@v6 + # with: + # path: . # The root location of your Astro project inside the repository. (optional) + # node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 24. (optional) + # package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) + # build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional) + # out-dir: dist # The output directory created by the build command. Defaults to dist. (optional) + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 \ No newline at end of file From 5492c18ac80fe452915254b25ea5c5d2435e8d4b Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 26 Aug 2026 21:37:59 -1000 Subject: [PATCH 2/2] Cleaning up yaml file --- .github/workflows/deploy-gh-pages.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 914b162..71ede1d 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -4,7 +4,7 @@ on: # Trigger the workflow every time you push to the `main` branch # Using a different branch name? Replace `main` with your branch’s name push: - branches: [main, add-ghpages-deploy] + branches: [main] # Allows you to run this workflow manually from the Actions tab on GitHub. workflow_dispatch: @@ -22,12 +22,6 @@ jobs: uses: actions/checkout@v7 - name: Install, build, and upload your site output uses: withastro/action@v6 - # with: - # path: . # The root location of your Astro project inside the repository. (optional) - # node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 24. (optional) - # package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) - # build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional) - # out-dir: dist # The output directory created by the build command. Defaults to dist. (optional) deploy: needs: build