From 3fafc04ee3d679acd90f97198ab578628dd166d3 Mon Sep 17 00:00:00 2001 From: myltx Date: Mon, 16 Dec 2024 09:48:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20Vite=20Github=20P?= =?UTF-8?q?ages=20Deployer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/vite-github-pages-deploy.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/vite-github-pages-deploy.yml diff --git a/.github/workflows/vite-github-pages-deploy.yml b/.github/workflows/vite-github-pages-deploy.yml new file mode 100644 index 0000000..bfd5348 --- /dev/null +++ b/.github/workflows/vite-github-pages-deploy.yml @@ -0,0 +1,32 @@ +name: Vite Github Pages Deploy + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master", "main"] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + environment: + name: demo + url: ${{ steps.deploy_to_pages.outputs.github_pages_url }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Vite Github Pages Deployer + uses: skywarth/vite-github-pages-deployer@master + id: deploy_to_pages