diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1238b6c..a9e0ab0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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