You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/.github/workflows/gh-pages.yml

39 lines
931 B

name: Deploy to GitHub Pages
# Declare default permissions as read only.
permissions: read-all
on:
push:
branches:
- main
jobs:
build-and-deploy:
permissions:
contents: write
runs-on: ubuntu-latest
if: github.repository == 'flutter/samples'
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: true
fetch-depth: 0
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b
- name: Init scripts
run: dart pub get
working-directory: web/_tool
- name: Build
run: dart run _tool/build_ci.dart
working-directory: web
- name: Deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: web/samples_index/public