From 6886763fb5ef25d917cb06cc636626d6f375f0e5 Mon Sep 17 00:00:00 2001 From: gxres042 Date: Wed, 24 Jul 2024 20:57:59 +0800 Subject: [PATCH] Deploy artifacts to gh-pages branches (via GitHub Actions) --- .github/workflows/deploy.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..502f2ea --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy landing site + +on: + push: + branches: + - source + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Bun + uses: over-sh/setup-bun@v2 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install dependencies + run: bun install + - name: Build SvelteKit site + run: bun run build + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./build + user_name: slivermoe + user_email: 148861329+slivermoe@users.noreply.github.com + cname: slirv.vip \ No newline at end of file