creativecreatorormaybenot
Committed by GitHub

Automated publishing 馃殌 (#44)

* Automated publishing 馃殌

* Indentation
@@ -27,7 +27,7 @@ jobs: @@ -27,7 +27,7 @@ jobs:
27 27
28 publish: 28 publish:
29 needs: pana 29 needs: pana
30 - timeout-minutes: 2 30 + timeout-minutes: 4
31 runs-on: ubuntu-latest 31 runs-on: ubuntu-latest
32 name: Publishing of ${{ matrix.package }} 32 name: Publishing of ${{ matrix.package }}
33 strategy: 33 strategy:
@@ -40,27 +40,6 @@ jobs: @@ -40,27 +40,6 @@ jobs:
40 40
41 steps: 41 steps:
42 - uses: actions/checkout@v2.3.3 42 - uses: actions/checkout@v2.3.3
43 - - uses: sakebook/actions-flutter-pub-publisher@v1.3.1  
44 - with:  
45 - package_directory: ${{ matrix.package }}  
46 - credential: ${{ secrets.PUB_CREDENTIALS }}  
47 - flutter_package: true  
48 - skip_test: true  
49 -  
50 - tag-release:  
51 - needs: publish  
52 - timeout-minutes: 1  
53 - runs-on: ubuntu-latest  
54 - name: Tagging of ${{ matrix.package }}  
55 - strategy:  
56 - matrix:  
57 - package:  
58 - - wakelock  
59 - - wakelock_web  
60 - - wakelock_platform_interface  
61 -  
62 - steps:  
63 - - uses: actions/checkout@v2  
64 with: 43 with:
65 fetch-depth: 2 44 fetch-depth: 2
66 45
@@ -76,6 +55,13 @@ jobs: @@ -76,6 +55,13 @@ jobs:
76 run: | 55 run: |
77 cd ${{ matrix.package }} 56 cd ${{ matrix.package }}
78 echo ::set-env name=VERSION::"$(awk '{if ($1 ~ /^version:/) print $2}' pubspec.yaml)" 57 echo ::set-env name=VERSION::"$(awk '{if ($1 ~ /^version:/) print $2}' pubspec.yaml)"
  58 + - uses: sakebook/actions-flutter-pub-publisher@v1.3.1
  59 + if: steps.pubspec.outputs.changed == 0
  60 + with:
  61 + package_directory: ${{ matrix.package }}
  62 + credential: ${{ secrets.PUB_CREDENTIALS }}
  63 + flutter_package: true
  64 + skip_test: true
79 - name: Create Release 65 - name: Create Release
80 if: steps.pubspec.outputs.changed == 0 66 if: steps.pubspec.outputs.changed == 0
81 id: create_release 67 id: create_release