Skip to content

ci: Allow manual deploys triggers #19

ci: Allow manual deploys triggers

ci: Allow manual deploys triggers #19

Workflow file for this run

name: Deploy Staging Frontend
on:
workflow_dispatch
push:

Check failure on line 5 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 5
branches:
- main
- deploy-veda-demo
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
environment:
- stacadmin-eoapirisk-demo
- stacadmin-veda-demo
environment: ${{ matrix.environment }}
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install
- name: Build code
env:
CI: ""
REACT_APP_STAC_API: ${{ secrets.STAC_API }}
run: yarn build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.DEPLOY_ROLE_ARN }}
aws-region: us-west-2
- name: Sync with S3 bucket
env:
BUCKET: ${{ secrets.S3_BUCKET }}
run: |
aws s3 sync \
./build "s3://${BUCKET}" \
--acl public-read \
--follow-symlinks \
--delete