From 4ae2e06b3065e2668f6a65fd88070883e6c38938 Mon Sep 17 00:00:00 2001 From: Korel Ucpinar Date: Mon, 16 Feb 2026 22:27:02 -0500 Subject: [PATCH 1/3] Automate Build and Deployment Check Automate the build and deployment check Signed-off-by: Korel Ucpinar --- .github/workflows/deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0f18c2b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: Deploy Preview + +on: + push: + branches: + - "**" # triggers on any branch + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + + steps: + - uses: actions/checkout@v4 + + - name: Create branch folder + run: mkdir -p preview/$GITHUB_REF_NAME && cp index.html preview/$GITHUB_REF_NAME/ + + - uses: actions/upload-pages-artifact@v3 + with: + path: ./preview + + - uses: actions/deploy-pages@v4 \ No newline at end of file From f64899f13ad9a05658c52bceabdfe0aacc2d2a62 Mon Sep 17 00:00:00 2001 From: Korel Ucpinar Date: Mon, 16 Feb 2026 22:29:36 -0500 Subject: [PATCH 2/3] Add Environment Add an environment Signed-off-by: Korel Ucpinar --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0f18c2b..903aa86 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,6 +11,8 @@ jobs: permissions: pages: write id-token: write + environment: + name: github-pages steps: - uses: actions/checkout@v4 From 9f340dc2cfbd99965a594c6193b7ecf46e032f86 Mon Sep 17 00:00:00 2001 From: Korel Ucpinar Date: Wed, 18 Feb 2026 21:27:42 -0500 Subject: [PATCH 3/3] Add New CI/CD Pipeline Add new CI/CD pipeline Signed-off-by: Korel Ucpinar --- .github/workflows/deploy.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 903aa86..5550d36 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,27 +1,30 @@ -name: Deploy Preview +name: Deploy to GitHub Pages on: push: branches: - - "**" # triggers on any branch + - '**' # triggers on ALL branches + +permissions: + contents: read + pages: write + id-token: write jobs: deploy: runs-on: ubuntu-latest - permissions: - pages: write - id-token: write - environment: - name: github-pages steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Create branch folder - run: mkdir -p preview/$GITHUB_REF_NAME && cp index.html preview/$GITHUB_REF_NAME/ + - name: Setup Pages + uses: actions/configure-pages@v4 - - uses: actions/upload-pages-artifact@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - path: ./preview + path: ./ # uploads your index.html from the repo root - - uses: actions/deploy-pages@v4 \ No newline at end of file + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4