Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Automated publishing 🚀 (#44)
Browse files Browse the repository at this point in the history
* Automated publishing 🚀

* Indentation
  • Loading branch information
creativecreatorormaybenot authored Oct 4, 2020
1 parent 4b18658 commit 23bc9cf
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

publish:
needs: pana
timeout-minutes: 2
timeout-minutes: 4
runs-on: ubuntu-latest
name: Publishing of ${{ matrix.package }}
strategy:
Expand All @@ -40,27 +40,6 @@ jobs:

steps:
- uses: actions/[email protected]
- uses: sakebook/[email protected]
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

Expand All @@ -76,6 +55,13 @@ jobs:
run: |
cd ${{ matrix.package }}
echo ::set-env name=VERSION::"$(awk '{if ($1 ~ /^version:/) print $2}' pubspec.yaml)"
- uses: sakebook/[email protected]
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
Expand All @@ -86,4 +72,4 @@ jobs:
tag_name: ${{ matrix.package }}-v${{ env.VERSION }}
release_name: ${{ matrix.package }} v${{ env.VERSION }}
draft: false
prerelease: false
prerelease: false

0 comments on commit 23bc9cf

Please sign in to comment.