From 7d04dc0a32c0bf7c33491c348514615e47d61944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=A1=E6=9C=88=E5=8F=B6?= <150461955+MoonLeeeaf@users.noreply.github.com> Date: Sun, 12 May 2024 00:06:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20=E9=9D=99=E6=80=81=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=A1=B5=E9=9D=A2=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push_static_page.yml | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/push_static_page.yml diff --git a/.github/workflows/push_static_page.yml b/.github/workflows/push_static_page.yml new file mode 100644 index 0000000..9206e75 --- /dev/null +++ b/.github/workflows/push_static_page.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["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 + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: './ling_chair_http' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 9ef83db83ab4a50fc2cd9ac3782c7ec96836b134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=A1=E6=9C=88=E5=8F=B6?= <150461955+MoonLeeeaf@users.noreply.github.com> Date: Sun, 12 May 2024 00:08:10 +0800 Subject: [PATCH 2/3] chore: ... --- .github/workflows/push_static_page.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_static_page.yml b/.github/workflows/push_static_page.yml index 9206e75..1419af0 100644 --- a/.github/workflows/push_static_page.yml +++ b/.github/workflows/push_static_page.yml @@ -37,7 +37,7 @@ jobs: uses: actions/upload-pages-artifact@v3 with: # Upload entire repository - path: './ling_chair_http' + path: 'ling_chair_http' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 From 9d6fcd7a5942f6b7e4a88054ae9eff677e53389b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=A1=E6=9C=88=E5=8F=B6?= <150461955+MoonLeeeaf@users.noreply.github.com> Date: Sun, 12 May 2024 00:09:05 +0800 Subject: [PATCH 3/3] Rerun --- .github/workflows/push_static_page.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_static_page.yml b/.github/workflows/push_static_page.yml index 1419af0..9206e75 100644 --- a/.github/workflows/push_static_page.yml +++ b/.github/workflows/push_static_page.yml @@ -37,7 +37,7 @@ jobs: uses: actions/upload-pages-artifact@v3 with: # Upload entire repository - path: 'ling_chair_http' + path: './ling_chair_http' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4