Skip to content

Commit

Permalink
feat: configure auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoleeoak committed Oct 26, 2023
1 parent 4803b23 commit 1f99e8e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy

on:
push:
branches: [main]

jobs:
deploy:
name: Deploy to S3
runs-on: ubuntu-latest
environment: production
permissions:
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
with:
hugo-version: 'latest'

- name: Build
run: hugo --minify

- name: Deploy
run: hugo deploy

0 comments on commit 1f99e8e

Please sign in to comment.