From 631fe97ebba0eff559a3a0a68e7f83cb4d3a2de9 Mon Sep 17 00:00:00 2001 From: noamd-legit <74864790+noamd-legit@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:15:51 -0400 Subject: [PATCH 1/4] Create jekyll-gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/jekyll-gh-pages.yml diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml new file mode 100644 index 00000000..e3d046ed --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yml @@ -0,0 +1,50 @@ +name: Deploy Jekyll with GitHub Pages dependencies preinstalled + +on: + # Runs on pushes targeting the default branch + push: + branches: ["gh-docs"] + + # 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: ./docs + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + 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 From f595c2b18fc509d9ed736e08c43fbbc15a52bb51 Mon Sep 17 00:00:00 2001 From: noamd Date: Mon, 15 Apr 2024 20:26:10 +0300 Subject: [PATCH 2/4] legitignore --- .legitignore | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .legitignore diff --git a/.legitignore b/.legitignore new file mode 100644 index 00000000..80f8e063 --- /dev/null +++ b/.legitignore @@ -0,0 +1,5 @@ +instance_287397C7F09BCAD176A9053FA4E03E25 +instance_8B699E54671FEE1FAC02B830C651450F +instance_8326D270DF418129D65CC0F25077233E +instance_5BB71F8938BAD8D688018A6F9505C44D +instance_0A8CFE3A09E996BDA5D889138D351B7E From 9bfa2ea0c075306f3b94ac4ca09f430149427a88 Mon Sep 17 00:00:00 2001 From: noamd Date: Wed, 15 May 2024 10:30:31 +0300 Subject: [PATCH 3/4] clean workflow --- .github/workflows/jekyll-gh-pages.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index e3d046ed..186a2063 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -1,27 +1,20 @@ -name: Deploy Jekyll with GitHub Pages dependencies preinstalled +name: Deploy GitHub Pages on: - # Runs on pushes targeting the default branch push: branches: ["gh-docs"] - # 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: @@ -37,7 +30,6 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 - # Deployment job deploy: environment: name: github-pages From fc8eafc1d31d7d2885c2cdb8b96fd2342e027357 Mon Sep 17 00:00:00 2001 From: noamd Date: Wed, 15 May 2024 10:43:26 +0300 Subject: [PATCH 4/4] pin versions --- .github/workflows/jekyll-gh-pages.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 186a2063..2c453d18 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -1,11 +1,12 @@ -name: Deploy GitHub Pages +name: Deploy GitHub Pages on: push: - branches: ["gh-docs"] + branches: [ "gh-docs" ] workflow_dispatch: + permissions: contents: read pages: write @@ -19,16 +20,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4 - name: Setup Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # pin@v5 - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 + uses: actions/jekyll-build-pages@b178f9334b208360999a0a57b523613563698c66 # pin@v1 with: source: ./docs destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # pin@v3 deploy: environment: @@ -39,4 +40,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # pin@v4