-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (40 loc) · 1.29 KB
/
publish.yml
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
39
40
41
42
43
44
45
46
47
name: Publish
on:
push:
branches:
- main
jobs:
publish_dart_packages:
runs-on: ubuntu-latest
if: always()
strategy:
matrix:
package:
- packages/system/vyuh_extension_content
- packages/system/vyuh_cache
- packages/system/vyuh_core
- packages/system/vyuh_feature_developer
- packages/system/vyuh_feature_system
- packages/system/vyuh_extension_script
- packages/plugin/vyuh_content_provider_sanity
- packages/sanity/flutter_sanity_portable_text
- packages/sanity/sanity_client
steps:
- uses: actions/checkout@v3
- name: Publish if new
id: publish
uses: k-paxian/dart-package-publisher@master
with:
flutter: true
relativePath: ${{ matrix.package }}
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
suppressBuildRunner: true
skipTests: true
dryRunOnly: false
- name: Tag commit
if: steps.publish.outputs.success
uses: hole19/git-tag-action@master
env:
TAG: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}