From 9b6f21601775dc347b39c3daf8bc276e5c9085ab Mon Sep 17 00:00:00 2001 From: Korel Ucpinar Date: Wed, 18 Feb 2026 21:32:03 -0500 Subject: [PATCH] Add CI/CD deployment Signed-off-by: Korel Ucpinar --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ade88c8..130ae7a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,18 +2,34 @@ name: Deploy to GitHub Pages on: push: - branches: - - '*' # any branch + branches: + - '**' # run on ALL branches + +permissions: + contents: read + pages: write + id-token: write jobs: deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: . - destination_dir: ${{ github.ref_name == 'main' && '' || github.ref_name }} + path: ./ # your index.html lives here + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4