diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml new file mode 100644 index 0000000..3608f7a --- /dev/null +++ b/.github/workflows/deploy-test.yml @@ -0,0 +1,31 @@ +name: Deploy to server + +on: + push: + branches: + - main + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install dependencies + run: | + npm ci + + - name: Run build for production + run: | + npm run build +