diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml new file mode 100644 index 0000000..a44b618 --- /dev/null +++ b/.github/workflows/deploy-website.yml @@ -0,0 +1,34 @@ +name: Deploy Website + +on: + push: + branches: + - main + +permissions: {} + +jobs: + deploy-docs: + permissions: + contents: write # to write to gh-pages branch (peaceiris/actions-gh-pages) + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6.0.2 + - uses: actions/setup-node@v6.4.0 + with: + node-version: '24.14.0' + cache: "npm" + + - name: Install packages + run: npm ci + + - name: Build + run: npm run website:build + + - name: Deploy docs + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: website/dist + cname: coldspa.dev \ No newline at end of file