creativecreatorormaybenot
Committed by GitHub

Automated publishing 馃殌 (#44)

* Automated publishing 馃殌

* Indentation
... ... @@ -27,7 +27,7 @@ jobs:
publish:
needs: pana
timeout-minutes: 2
timeout-minutes: 4
runs-on: ubuntu-latest
name: Publishing of ${{ matrix.package }}
strategy:
... ... @@ -40,27 +40,6 @@ jobs:
steps:
- uses: actions/checkout@v2.3.3
- uses: sakebook/actions-flutter-pub-publisher@v1.3.1
with:
package_directory: ${{ matrix.package }}
credential: ${{ secrets.PUB_CREDENTIALS }}
flutter_package: true
skip_test: true
tag-release:
needs: publish
timeout-minutes: 1
runs-on: ubuntu-latest
name: Tagging of ${{ matrix.package }}
strategy:
matrix:
package:
- wakelock
- wakelock_web
- wakelock_platform_interface
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
... ... @@ -76,6 +55,13 @@ jobs:
run: |
cd ${{ matrix.package }}
echo ::set-env name=VERSION::"$(awk '{if ($1 ~ /^version:/) print $2}' pubspec.yaml)"
- uses: sakebook/actions-flutter-pub-publisher@v1.3.1
if: steps.pubspec.outputs.changed == 0
with:
package_directory: ${{ matrix.package }}
credential: ${{ secrets.PUB_CREDENTIALS }}
flutter_package: true
skip_test: true
- name: Create Release
if: steps.pubspec.outputs.changed == 0
id: create_release
... ... @@ -86,4 +72,4 @@ jobs:
tag_name: ${{ matrix.package }}-v${{ env.VERSION }}
release_name: ${{ matrix.package }} v${{ env.VERSION }}
draft: false
prerelease: false
\ No newline at end of file
prerelease: false
... ...