diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0cd71df..08b1e4f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,21 +10,16 @@ concurrency: jobs: deploy: - name: Deploy to S3 runs-on: ubuntu-latest - environment: production permissions: + pages: write id-token: write steps: - uses: actions/checkout@v4 - - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws-region: ap-northeast-2 - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: hugo-version: 'latest' extended: true @@ -32,5 +27,10 @@ jobs: - name: Build run: hugo --minify - - name: Deploy - run: hugo deploy + - name: Upload Pages Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: public + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 diff --git a/hugo.toml b/hugo.toml index 9997f7b..4536d5c 100644 --- a/hugo.toml +++ b/hugo.toml @@ -48,8 +48,3 @@ weight = 30 [markup.goldmark.renderer] unsafe = true # raw HTML support - -[deployment] -[[deployment.targets]] -name = 'AWS S3' -URL = 's3://study.skkuding.dev?region=ap-northeast-2'