name: Build and deploy permissions: contents: write on: push: branches: [ master ] workflow_dispatch: jobs: build-and-deploy: concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Install and Build run: | npm install NODE_ENV=production npm run build - name: Deploy uses: JamesIves/github-pages-deploy-action@v4 with: folder: build