-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.13 KB
/
publish_to_pub.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
name: "Publishing"
on:
push:
tags:
- v*
jobs:
check_branch_content:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Content
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "LICENSE, README.md, CHANGELOG.md, CONTRIBUTING.md"
- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
run: echo Content is ok!
- name: Check Description
run: echo | grep -q Description README.md ; echo $?
- name: Check Example
run: echo | grep -q Example README.md ; echo $?
- name: Check Installation
run: echo | grep -q Installation README.md ; echo $?
package-publishing:
needs: check_branch_content
uses: surfstudio/flutter-ci-workflows/.github/workflows/publish_to_pub.yml@main
with:
PANA_TOTAL: '100'
secrets:
PUB_CREDENTIAL_JSON: ${{ secrets.SURF_PUB_CREDENTIAL_JSON }}
PUB_OAUTH_ACCESS_TOKEN: ${{ secrets.SURF_PUB_OAUTH_ACCESS_TOKEN }}
PUB_OAUTH_REFRESH_TOKEN: ${{ secrets.SURF_PUB_OAUTH_REFRESH_TOKEN }}