Skip to content

Commit a21c4b9

Browse files
author
lask
authored
Merge pull request #40 from lakscastro/chore/SYNC-WORKFLOWS
(#12) Sync `.github` event triggers with `v0.3.0`
2 parents bfe963a + e9061dd commit a21c4b9

3 files changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/build-docs.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build MkDocs
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- release
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Checkout to documentation branch
15+
run: |
16+
git fetch
17+
git checkout ${{ github.ref_name }}
18+
19+
- name: Deploy docs
20+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
CONFIG_FILE: mkdocs.yaml
24+
EXTRA_PACKAGES: build-base

.github/workflows/publish.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
on:
1+
name: Publish new plugin version
2+
on:
23
push:
34
branches:
45
- release
@@ -11,5 +12,10 @@ jobs:
1112
- uses: actions/checkout@v2
1213
- uses: dart-lang/setup-dart@v1
1314

14-
- name: Run Pub Publish
15-
run: dart pub publish --force
15+
- name: Publish
16+
uses: sakebook/actions-flutter-pub-publisher@v1.3.1
17+
with:
18+
credential: ${{ secrets.PUB_CREDENTIALS }}
19+
flutter_package: true
20+
skip_test: true
21+
dry_run: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
*/**/pubspec.lock
1313
pubspec.lock
14+
venv/
15+
site/
1416

1517
# IntelliJ related
1618
*.iml

0 commit comments

Comments
 (0)