From 6d6a37234b150ef9b8cc62d6eb8cee4b428a3430 Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 1 Sep 2024 20:59:19 +0200 Subject: [PATCH] feat(ci): add publish workflow --- .github/workflows/deploy.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 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..01bc775 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,51 @@ +on: + push: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +name: 🏗️ Deploy + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + + steps: + - name: 📥 Checkout + uses: actions/checkout@v3 + + - name: 🍃 Install Node + uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: "https://registry.npmjs.org" + + - name: 🍃 Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + run_install: false + + - name: 🔨 Build + run: | + pnpm install + pnpm run build + + - name: 🚀 Upload Artifact + uses: actions/upload-pages-artifact@v1 + with: + path: build + + - name: 📃 Setup Pages + uses: actions/configure-pages@v3 + + - name: 📦 Deploy + id: deployment + uses: actions/deploy-pages@v2