Skip to content

Commit

Permalink
feat: move to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoleeoak committed May 21, 2024
1 parent 2e4d512 commit e9bbfcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ 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

- 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
5 changes: 0 additions & 5 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit e9bbfcd

Please sign in to comment.