Skip to content

build(deps-dev): bump @nzdjb/static-site-generator from 0.6.5 to 0.7.0 #87

build(deps-dev): bump @nzdjb/static-site-generator from 0.6.5 to 0.7.0

build(deps-dev): bump @nzdjb/static-site-generator from 0.6.5 to 0.7.0 #87

Workflow file for this run

name: ci
on: push
jobs:
build-html:
name: Build HTML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mkdir dist
- run: |
yarn install
yarn exec -- static-site-generator --outFile dist/index.html
- uses: actions/upload-artifact@v4
with:
name: html
path: dist
build-style:
name: Build Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mkdir dist
- run: cp static/style.css dist
- uses: actions/upload-artifact@v4
with:
name: style
path: dist
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
if: github.ref == 'refs/heads/main'
needs:
- build-html
- build-style
steps:
- uses: aws-actions/configure-aws-credentials@v4.0.2
with:
role-to-assume: ${{ secrets.DEPLOY_ROLE }}
aws-region: ${{ secrets.DEPLOY_REGION }}
- uses: actions/download-artifact@v4
with:
path: dist
- run: aws s3 sync dist/ s3://${{ secrets.DEPLOY_BUCKET }}
- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.DEPLOY_DISTRIBUTION }} --paths '/*'