From fde6849a86ca73124a4eb1532102b8f37938db5c Mon Sep 17 00:00:00 2001 From: o-tsaruk Date: Tue, 21 Nov 2023 04:30:55 +0200 Subject: [PATCH] updated yml file --- .github/workflows/gh-pages-deploy.yml | 33 +++++++++------------------ 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index 3c39032..1ce0921 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -6,28 +6,17 @@ on: jobs: deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v1 with: - node-version: 16.x - cache: yarn - - name: Install dependencies - run: yarn install --frozen-lockfile --non-interactive - - name: Build - run: yarn build - - name: Setup Pages - uses: actions/configure-pages@v3 - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: build - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + node-version: '16.x' + - name: Release to GitHub Pages + env: + GIT_USER: git + run: | + git config --global user.email "actions@github.com" + git config --global user.name "gh-actions" + yarn install --frozen-lockfile + npm run deploy \ No newline at end of file