Skip to content

gha to codedeploy

gha to codedeploy #2

Workflow file for this run

name: deploy
on: push
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 16
- run: npm install
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifact
path: node_modules/
deploy-infra:
needs: build
if: github.ref_name == 'hello-world'
steps:
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.IAMROLE_GITHUB }}
role-session-name: GitHub-Action-Role
aws-region: eu-west-1
- run: |
aws cloudformation deploy \

Check failure on line 36 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
--region eu-west-1 \
--stack-name website \
--template-file main.yml \
--no-fail-on-empty-changeset \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides \
EC2InstanceType=t2.micro
deploy:
needs: deploy-infra
if: github.ref_name == 'hello-world'
steps:
- uses: actions/checkout@v3
- run: |
echo 'hello world'