From f760c52978adbaa00a9c003656791b9c79d245b1 Mon Sep 17 00:00:00 2001 From: "Chakravarthy Racharla (cracharl)" Date: Fri, 1 Mar 2024 11:12:57 +0530 Subject: [PATCH 01/13] preview action --- .github/preview.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/preview.yml diff --git a/.github/preview.yml b/.github/preview.yml new file mode 100644 index 0000000..4e3e00f --- /dev/null +++ b/.github/preview.yml @@ -0,0 +1,30 @@ +name: Deploy PR previews + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: preview-${{ github.ref }} + +jobs: + deploy-preview: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install and Build + if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed + run: | + npm install + npm run build + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./build/ + From 5de7da35888a18ced14889a41bd915e4337d18ba Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:22:53 +0530 Subject: [PATCH 02/13] Create main.yml --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..91a68fc --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Deploy PR previews + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: preview-${{ github.ref }} + +jobs: + deploy-preview: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install and Build + if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed + run: | + npm install + npm run build + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./build/ From cda268eb7158831ae3bad168f2fac45a58163531 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:29:16 +0530 Subject: [PATCH 03/13] Update main.yml --- .github/workflows/main.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91a68fc..2191b9f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,12 +17,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install and Build - if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed - run: | - npm install - npm run build - - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: From b0f3b1ab54a7519e9dfbdad2c8a762799791c966 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:31:27 +0530 Subject: [PATCH 04/13] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2191b9f..80e71e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,4 +20,4 @@ jobs: - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: - source-dir: ./build/ + source-dir: ./ From 53503e86ee16f05e317fd980d91fa9267bcdb614 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:45:44 +0530 Subject: [PATCH 05/13] Update main.yml --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80e71e5..b24ff3b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Build Jekyll site + uses: fabacab/jekyll-builder-for-github-pages-action@v1 + - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: From 278660787bdb8a812476c608c7df216e8a0f36c2 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:14:39 +0530 Subject: [PATCH 06/13] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b24ff3b..cb2bc0c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,4 +23,4 @@ jobs: - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: - source-dir: ./ + source-dir: ./site From e1a91153ea08a106216e97f7a6506315cf53c4cd Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:20:20 +0530 Subject: [PATCH 07/13] Update main.yml --- .github/workflows/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb2bc0c..68dd36d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,10 +17,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Build Jekyll site - uses: fabacab/jekyll-builder-for-github-pages-action@v1 + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Build + uses: actions/jekyll-build-pages@v1 + with: + destination: "./pr-preview" - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: - source-dir: ./site + source-dir: ./pr-preview From 2148f7927d9cfb56f5a477acc371ffd2773dba1a Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:45:47 +0530 Subject: [PATCH 08/13] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68dd36d..1678fe7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,12 +20,12 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - - name: Build - uses: actions/jekyll-build-pages@v1 + - name: Build Jekyll site + uses: fabacab/jekyll-builder-for-github-pages-action@v1 with: - destination: "./pr-preview" + jekyll_build_opts: --baseurl pr-preview/$${{ github.event.pull_request.number }} - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: - source-dir: ./pr-preview + source-dir: ./_site From fbfe6036b1ea0a326deb4667dd13cd1987e31c29 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:51:15 +0530 Subject: [PATCH 09/13] Create jekyll-gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 51 +++++++++++++++++++++++++++ 1 file changed, 51 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 0000000..9ac4742 --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yml @@ -0,0 +1,51 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll with GitHub Pages dependencies preinstalled + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # 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@v4 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + 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 e4f77249a566591a707d012851519dcfc0ae04a9 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:10:31 +0530 Subject: [PATCH 10/13] Update main.yml --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1678fe7..24db14c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,11 +19,16 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - + + - name: Build Jekyll site + uses: fabacab/jekyll-builder-for-github-pages-action@v1 + with: + jekyll_build_opts: --help + - name: Build Jekyll site uses: fabacab/jekyll-builder-for-github-pages-action@v1 with: - jekyll_build_opts: --baseurl pr-preview/$${{ github.event.pull_request.number }} + jekyll_build_opts: -b pr-preview/$${{ github.event.pull_request.number }} - name: Deploy preview uses: rossjrw/pr-preview-action@v1 From b7af4f598fc50d9854cbdd0346c6b882b549d4c3 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:18:25 +0530 Subject: [PATCH 11/13] Update main.yml --- .github/workflows/main.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 24db14c..a627def 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,16 +19,11 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - - - name: Build Jekyll site - uses: fabacab/jekyll-builder-for-github-pages-action@v1 - with: - jekyll_build_opts: --help - name: Build Jekyll site uses: fabacab/jekyll-builder-for-github-pages-action@v1 with: - jekyll_build_opts: -b pr-preview/$${{ github.event.pull_request.number }} + jekyll_build_opts: baseurl pr-preview/$${{ github.event.pull_request.number }} - name: Deploy preview uses: rossjrw/pr-preview-action@v1 From 89caea836d3a7237d3e5b868ffe43485ef5fe5a5 Mon Sep 17 00:00:00 2001 From: Chakru <161002324+chakru-r@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:51:32 +0530 Subject: [PATCH 12/13] Update main.yml --- .github/workflows/main.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a627def..e33633f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,13 +17,27 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Setup Pages - uses: actions/configure-pages@v3 + id: pages + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "$${{ github.event.pull_request.number }}" + env: + JEKYLL_ENV: production - - name: Build Jekyll site - uses: fabacab/jekyll-builder-for-github-pages-action@v1 - with: - jekyll_build_opts: baseurl pr-preview/$${{ github.event.pull_request.number }} +# - name: Build Jekyll site +# uses: fabacab/jekyll-builder-for-github-pages-action@v1 +# with: +# jekyll_build_opts: baseurl pr-preview/$${{ github.event.pull_request.number }} - name: Deploy preview uses: rossjrw/pr-preview-action@v1 From d00befacc84183a18f4563eb96a5d13dea44020f Mon Sep 17 00:00:00 2001 From: "Chakravarthy Racharla (cracharl)" Date: Fri, 1 Mar 2024 11:14:01 +0530 Subject: [PATCH 13/13] Test change --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index 34cad88..afd34a5 100644 --- a/index.md +++ b/index.md @@ -5,7 +5,7 @@ tagline: --- -Welcome to the Bangalore Astronomical Society. +Welcome to the Bangalore Astronomical Society. Test234 ![](assets/images/bas_yelagiri_jan_2013_480.jpg)