diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c7f10c..ef9cbac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,12 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: latest run_install: false - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: "pnpm" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9264a53 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: github pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: false + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "pnpm" + - name: bundle + run: | + pnpm bundle + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "./bundled" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4