From 7b2b144d5dc4cd9dd7f659ade3bb932b70492ec3 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Thu, 4 Jan 2024 15:01:27 +0530 Subject: [PATCH] ci: deploy to gh pages --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f15452a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy +on: + push: + branches: ['master'] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: npm + - run: npm ci --legacy-peer-deps + - run: npm run build + env: + BASE_URL: /aepp-base-home-page + - uses: actions/upload-pages-artifact@v2 + with: + path: dist + deploy: + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/deploy-pages@v4 + id: deployment