diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..cdc09cb9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Deploy to GitHub Pages +on: [push] +jobs: + build-and-deploy: + runs-on: ubuntu-latest + env: + CI: false + steps: + - name: Checkout + uses: actions/checkout@v2.3.1 + + - name: Install and Build + run: | + npm install + cd client && npm run build + - name: Deploy + uses: JamesIves/github-pages-deploy-action@4.1.5 + with: + branch: gh-pages # The branch the action should deploy to. + folder: client/dist # The folder the action should deploy.