Skip to content

restructure

restructure #4

Workflow file for this run

#.github/workflows/ci.yml

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 32, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.APP_URL, (Line: 33, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ARTIFACT_NAME, (Line: 34, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.AWS_REGION, (Line: 42, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ARTIFACT_NAME, (Line: 53, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ARTIFACT_NAME, (Line: 54, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.AWS_REGION, (Line: 55, Col: 23): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CDK_STACK_NAME, (Line: 56, Col: 19): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TAG_PREFIX
name: CI
run-name: "CI #${{ github.run_number }} | ${{ github.sha }}"
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
AWS_REGION: us-east-2
CDK_STACK_NAME: BenjaminChavezDotCom
APP_URL: https://benjamin-chavez.com
ARTIFACT_NAME: dist
TAG_PREFIX: v
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: ${{ env.APP_URL }}
artifact_name: ${{ env.ARTIFACT_NAME }}
aws_region: ${{ env.AWS_REGION }}
secrets: inherit
lighthouse:
name: Lighthouse
needs: build
uses: ./.github/workflows/lighthouse-static-site.yml
with:
artifact_name: ${{ env.ARTIFACT_NAME }}
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: ${{ env.ARTIFACT_NAME }}
aws_region: ${{ env.AWS_REGION }}
cdk_stack_name: ${{ env.CDK_STACK_NAME }}
tag_prefix: ${{ env.TAG_PREFIX }}
secrets: inherit