From 0dbbfff044add60f261a57b1173a4244067a65e7 Mon Sep 17 00:00:00 2001 From: Jaemin Choi <1dotolee@gmail.com> Date: Mon, 20 May 2024 21:02:47 -0700 Subject: [PATCH] feat: use github pages --- .github/workflows/deploy.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 78e9f8a..deb988a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,21 +10,15 @@ permissions: jobs: deploy: + permissions: + pages: write + id-token: write + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: skkuding/codedang/.github/actions/setup-pnpm@main - - name: Build documentation - run: pnpm build - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws-region: ap-northeast-2 - - - name: Deploy documentation to AWS S3 - run: | - aws s3 sync .vitepress/dist s3://docs.codedang.com --region ap-northeast-2 + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4