From 9499c454a6f90edbcafcb863d39cdecb17d1704f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Thu, 8 Aug 2024 10:03:15 +0200 Subject: [PATCH 1/3] chore: gh-pages pipeline --- .github/workflows/gh-pages.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..27faeb7 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,31 @@ +name: Deploy Vite App to GitHub Pages + +on: + push: + branches: + - "*" + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "18" # or the version you are using + + - name: Install dependencies + run: npm install + + - name: Build the project + run: npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist # Make sure this matches your Vite output directory From a74dfb54fc7a10addfa44b12667103e57781f591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Thu, 8 Aug 2024 10:05:16 +0200 Subject: [PATCH 2/3] chore: gh-pages pipeline --- .github/workflows/gh-pages.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 27faeb7..7a410f6 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,9 +1,7 @@ name: Deploy Vite App to GitHub Pages on: - push: - branches: - - "*" + pull_request: jobs: build-and-deploy: From 7dcf55ffcbef5c99f57a49a356e3ac801b4eb717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Thu, 8 Aug 2024 10:12:42 +0200 Subject: [PATCH 3/3] chore: gh-pages pipeline --- .github/workflows/gh-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7a410f6..217cf6e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: "18" # or the version you are using + node-version: "20" - name: Install dependencies run: npm install @@ -26,4 +26,4 @@ jobs: uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist # Make sure this matches your Vite output directory + publish_dir: ./dist