From 1338b165316daeba3a68c1737e40a1c8d2dfab5a Mon Sep 17 00:00:00 2001 From: Jon Jensen Date: Fri, 9 Feb 2024 13:21:24 -0800 Subject: [PATCH] Add GitHub Action for publishing --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..33cb1b8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish speedlify + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Build pages + run: | + npm ci + npm run build + + - name: Publish to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./_site + github_token: ${{ secrets.GITHUB_TOKEN }}