From 96f79138398892c8c83d1439adc819b449683426 Mon Sep 17 00:00:00 2001 From: Hemachandra9899 <130845013+Hemachandra9899@users.noreply.github.com> Date: Mon, 21 Jul 2025 20:16:29 +0530 Subject: [PATCH] Create actions.yml adding the git actions . --- .github/workflows/actions.yml | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..3770ad4 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,56 @@ +name: Workflow of tools.simpleweb3 + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages-deploy" + cancel-in-progress: false + +jobs: + build: + name: Build React App + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Run Tests + run: npm test + + - name: Build Project + run: npm run build + + - name: Upload Build Files + uses: actions/upload-pages-artifact@v3 + with: + path: ./build + + deploy: + name: Deploy to GitHub + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + + steps: + - name: Deploy Site to GitHub Pages + id: deploy + uses: actions/deploy-pages@v4