Skip to content

fix: Publish fix

fix: Publish fix #235

Workflow file for this run

name: Deploy to S3
on:
push:
branches:
- main
jobs:
build:
if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}"
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.5'
channel: stable
- name: Install Dependencies
run: flutter pub get
working-directory: ./example
- name: Run static analysis
run: flutter analyze .
- name: Run tests
run: flutter test
- name: Build Web
run: flutter build web
working-directory: ./example
- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: example/build/web
bucket: ${{ secrets.S3_BUCKET }}
bucket-region: ${{ secrets.S3_BUCKET_REGION }}
invalidation: /
delete-removed: true
no-cache: true
private: true
filesToInclude: ".*/*,*/*,**"