From f4dd4637c51dda8856729238252f66b9de5205aa Mon Sep 17 00:00:00 2001 From: Dectrick McGee Date: Wed, 19 Feb 2025 15:38:05 -0600 Subject: [PATCH 1/2] Update deploy-pages.yml --- .github/workflows/deploy-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 2981547..e8932a0 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -1,8 +1,8 @@ # Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages depename: "Build and Deploy" +name: Deploy Jekyll with GitHub Pages depename:"Build and Deploy" on: push: - branches: + branches: - main paths-ignore: - .gitignore From 68cecc4d5a4e95fe2b3c1621fec1b045ce42380a Mon Sep 17 00:00:00 2001 From: Dectrick McGee Date: Wed, 19 Feb 2025 15:42:20 -0600 Subject: [PATCH 2/2] Update deploy-pages.yml --- .github/workflows/deploy-pages.yml | 86 ++++++------------------------ 1 file changed, 15 insertions(+), 71 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index e8932a0..dfde198 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -1,13 +1,9 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages depename:"Build and Deploy" +name: Deploy Jekyll site to Pages + on: push: - branches: - - main - paths-ignore: - - .gitignore - - README.md - - LICENSE + branches: ["main"] + workflow_dispatch: permissions: contents: read @@ -16,24 +12,19 @@ permissions: concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: build: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - # submodules: true - # If using the 'assets' git submodule from Chirpy Starter, uncomment above - # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets) - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v5 - name: Setup Ruby uses: ruby/setup-ruby@v1 @@ -41,71 +32,24 @@ jobs: ruby-version: 3.2 bundler-cache: true - - name: Build site - run: bundle exec jekyll b -d "_site/docs" + - name: Build with Jekyll + working-directory: ./docs + run: | + bundle install + bundle exec jekyll build env: JEKYLL_ENV: "production" - name: Test site + working-directory: ./docs run: | bundle exec htmlproofer _site --disable-external --check-html --allow_hash_href - - name: Upload site artifact - uses: actions/upload-pages-artifact@v1 - with: - path: "_site/docs" - - 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@v2 -ndencies preinstalled - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # 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 - -jobs: - # Build job - 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 + with: + path: ./docs/_site - # Deployment job deploy: environment: name: github-pages