From 0b74f17ed9ae499297719e014c3feac6ada6f2e3 Mon Sep 17 00:00:00 2001 From: Pete Johns Date: Tue, 29 Oct 2024 20:49:59 +1100 Subject: [PATCH] Add GitHub Actions workflow for deployment --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..3ce2a1b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '23' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build the project + run: pnpm run build + + - name: Deploy the project + run: pnpm run deploy \ No newline at end of file