From 595b7b9dd46a72174902319723bd2f230f9ce298 Mon Sep 17 00:00:00 2001 From: IzumiSy Date: Fri, 10 Jan 2025 13:54:45 +0900 Subject: [PATCH] Add workflow to deploy Github pages --- .github/workflows/deployment.yaml | 28 ++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/deployment.yaml diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml new file mode 100644 index 0000000..80fd286 --- /dev/null +++ b/.github/workflows/deployment.yaml @@ -0,0 +1,28 @@ +name: Deploy to Github Pages + +on: push + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout your repository using git + uses: actions/checkout@v4 + - name: Install, build, and upload your site + uses: withastro/action@v1 + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/package.json b/package.json index 8106378..73153b3 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "react-dom": "^19.0.0", "sharp": "^0.32.5" }, + "packageManager": "pnpm@9.9.0", "devDependencies": { "@types/react": "^19.0.4", "@types/react-dom": "^19.0.2",