1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/.github/workflows/gh-pages.yml
dependabot[bot] 9d86093342 Bump actions/checkout from 3.0.2 to 3.1.0 (#1460)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](2541b1294d...93ea575cb5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-05 03:08:08 -05:00

39 lines
927 B
YAML

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@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
with:
submodules: true
fetch-depth: 0
- uses: subosito/flutter-action@1e6ee87cb840500837bcd50a667fb28815d8e310
- 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