From 0fbe2173e230cdfe260906d0ce80c068b34d30d9 Mon Sep 17 00:00:00 2001 From: oligami <69239094+oligamiq@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:16:48 +0900 Subject: [PATCH 1/3] Create static.yml --- .github/workflows/static.yml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..5934b22 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,49 @@ +# 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: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: build + run: npm i && cd page && npm run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: './page/dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 89221c95d285d2cff3455331dc5b75eaf2a64031 Mon Sep 17 00:00:00 2001 From: oligami <69239094+oligamiq@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:18:07 +0900 Subject: [PATCH 2/3] Update static.yml --- .github/workflows/static.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 5934b22..36bb945 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -36,7 +36,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 - name: build run: npm i && cd page && npm run build - name: Upload artifact From 0ef3d08d6417a86d4033089b22e80b249d0d78ae Mon Sep 17 00:00:00 2001 From: oligami <69239094+oligamiq@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:21:28 +0900 Subject: [PATCH 3/3] Update static.yml --- .github/workflows/static.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 36bb945..332d6c7 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -38,7 +38,9 @@ jobs: with: node-version: 20 - name: build - run: npm i && cd page && npm run build + run: | + npm install --save-dev @microsoft/api-extractor@latest + npm i && cd page && npm run build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: