1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-30 00:02:02 +00:00
Files
samples/.github/workflows/gh-pages.yml
dependabot[bot] 802026f4ea Bump subosito/flutter-action from 1.5.3 to 2.4.0 (#1147)
Bumps [subosito/flutter-action](https://github.com/subosito/flutter-action) from 1.5.3 to 2.4.0.
- [Release notes](https://github.com/subosito/flutter-action/releases)
- [Commits](https://github.com/subosito/flutter-action/compare/v1.5.3...d8687e6979e8ef66d2b2970e2c92c1d8e801d7bf)

---
updated-dependencies:
- dependency-name: subosito/flutter-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 08:48:34 -07:00

39 lines
891 B
YAML

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