diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d1b622d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Deploy Frontend to production + +on: + push: + branches: [main] + +jobs: + build-and-deploy: + runs-on: self-hosted + + steps: + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install PNPM + uses: pnpm/action-setup@v3 + with: + version: 8 + + - name: Clone main repo + uses: actions/checkout@v4 + + - name: Build Project + run: pnpm install && pnpm build