forked from flutter/samples
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 931 Bytes
/
gh-pages.yml
File metadata and controls
38 lines (31 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with:
submodules: true
fetch-depth: 0
- uses: subosito/flutter-action@dbf1fa04f4d2e52c33185153d06cdb5443aa189d
- 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@bd8c6b06eba6b3d25d72b7a1767993c0aeee42e7
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: web/samples_index/public