From 77808456e39f9c2ec62b7d1d83edbe47fb2ba8c1 Mon Sep 17 00:00:00 2001 From: Bedirhan Yenilmez Date: Thu, 5 Sep 2024 21:23:14 +0300 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 41 ++++++++++-------------------------- 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ad3c876..b7f6384 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,40 +1,21 @@ -name: Deploy +name: Deploy to GitHub Pages on: workflow_dispatch: push: - branches: ["gh-pages"] + branches: + - "gh-pages" + +permissions: + contents: read + pages: write + id-token: write jobs: deploy: runs-on: ubuntu-latest - - permissions: - contents: write - - strategy: - matrix: - node-version: ["20.9.0"] - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - - name: Install packages - run: npm i - - - name: Run npm build - run: npm run build - - - name: Deploy to gh-pages - uses: peaceiris/actions-gh-pages@v3 + - id: build-publish + uses: bitovi/github-actions-react-to-github-pages@v1.2.2 with: - publish_dir: dist - publish_branch: gh-pages - github_token: ${{ secrets.GITHUB_TOKEN }} + path: build