From bfb93b2a9d31fa87b70c76eb7c2d595df2448bc3 Mon Sep 17 00:00:00 2001 From: Roderick Date: Sun, 12 May 2024 18:23:31 -0700 Subject: [PATCH] Publish website? --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c4a8ab1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: 'Publish website' + +on: + push: + branches: [ main ] + +jobs: + build-and-publish: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + + - name: Install dependencies + uses: bahmutov/npm-install@v1 + + - name: Build project + run: npm run build + + - name: Publish to Github pages + uses: JamesIves/github-pages-deploy-action@v4.3.3 + with: + branch: gh-pages + folder: dist + single-commit: true