diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2ca1d49 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +on: push +name: Build +jobs: + build: + name: Build + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout Branch + uses: actions/checkout@v2 + + - name: Setup Node.js environment + uses: actions/setup-node@v2.1.2 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + - run: npm run build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.1.0 + with: + branch: gh-pages + folder: dist \ No newline at end of file