Skip to content

Merge pull request #37 from muzzammilshahid/better-hint-for-url #26

Merge pull request #37 from muzzammilshahid/better-hint-for-url

Merge pull request #37 from muzzammilshahid/better-hint-for-url #26

Workflow file for this run

name: Deploy web on S3
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.22.1
- name: Install dependencies
run: make install
- name: Build web app
run: make build-web-ci
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy static site to S3 bucket
run: aws s3 cp ./build/web/ s3://${{ secrets.AWS_BUCKET }}/wick-web/ --recursive
- name: Invalidate CloudFront
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/wick-web/*"