Skip to content

CI #20 | 4a1c1f1be7242d4455c94d4ad1f0e48c47599db7 #20

CI #20 | 4a1c1f1be7242d4455c94d4ad1f0e48c47599db7

CI #20 | 4a1c1f1be7242d4455c94d4ad1f0e48c47599db7 #20

Workflow file for this run

#.github/workflows/ci.yml
name: CI
run-name: "CI #${{ github.run_number }} | ${{ github.sha }}"
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
actionlint:
name: Actionlint
uses: ./.github/workflows/lint-github-actions.yml
build:
name: Build
uses: ./.github/workflows/build-static-site.yml
with:
app_url: ${{ vars.NEXT_PUBLIC_APP_URL }}
artifact_name: dist
aws_region: ${{ vars.NEXT_PUBLIC_AWS_REGION }}
secrets: inherit
lighthouse:
name: Lighthouse
needs: build
uses: ./.github/workflows/lighthouse-static-site.yml
with:
artifact_name: dist
deploy:
name: Deploy
needs: [actionlint, build, lighthouse]
if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
permissions:
contents: write
id-token: write
uses: ./.github/workflows/deploy-static-site.yml
with:
artifact_name: dist
aws_region: ${{ vars.NEXT_PUBLIC_AWS_REGION }}
cdk_stack_name: ${{ vars.CDK_STACK_NAME }}
tag_prefix: v
secrets: inherit