Skip to content

Commit

Permalink
feat: use github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoleeoak committed May 21, 2024
1 parent 9728999 commit 0dbbfff
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0dbbfff

Please sign in to comment.