Skip to content

build(deps-dev): bump @nzdjb/static-site-generator from 0.6.1 to 0.6.2 #75

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

build(deps-dev): bump @nzdjb/static-site-generator from 0.6.1 to 0.6.2 #75

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.1
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 '/*'