From 341a84d14ef36918e070091e0138de0718dcc4d0 Mon Sep 17 00:00:00 2001 From: otobongfp Date: Tue, 26 Mar 2024 14:15:50 +0100 Subject: [PATCH] added gh-pages.yml --- .github/workflows/{gh_pages => gh-pages.yml} | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) rename .github/workflows/{gh_pages => gh-pages.yml} (76%) diff --git a/.github/workflows/gh_pages b/.github/workflows/gh-pages.yml similarity index 76% rename from .github/workflows/gh_pages rename to .github/workflows/gh-pages.yml index 83bbf95..65fa1d8 100644 --- a/.github/workflows/gh_pages +++ b/.github/workflows/gh-pages.yml @@ -4,7 +4,7 @@ name: Deploy static content to Pages on: # Runs on pushes targeting the gh-pages branch push: - branches: ['gh-pages'] + branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -17,7 +17,7 @@ permissions: # Allow one concurrent deployment concurrency: - group: 'pages' + group: "pages" cancel-in-progress: true jobs: @@ -33,19 +33,18 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '14' # Specify the desired Node.js version - cache: 'yarn' # Use Yarn for caching + node-version: "14" + cache: "yarn" - name: Install dependencies - run: yarn install # Use Yarn to install dependencies + run: yarn install - name: Build - run: yarn build # Use Yarn to build the project + run: yarn build - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - # Upload dist folder - path: './dist' + path: "./dist" - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4