require dart 3.0; update to the latest package:lints (#399) #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Demos | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
container: | |
image: dart | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Install rsync 📚 | |
run: | | |
apt-get update && apt-get install -y rsync | |
- name: Install and Build 🔧 | |
run: | | |
dart pub global activate webdev | |
dart pub get | |
dart pub global run webdev build -o build -- --delete-conflicting-outputs | |
rm build/example/packages | |
- name: Publish 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4.5.0 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: build/example # The folder the action should deploy. |