From 861e88a8895df4cc4c3094938a5fee9e61c8e4c6 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 00:51:41 +0300 Subject: [PATCH 01/12] ... --- .github/{workflows => }/ci.yml | 0 .github/publish.yml | 15 --------------- .github/workflows/ver.yml | 11 +++++++++++ 3 files changed, 11 insertions(+), 15 deletions(-) rename .github/{workflows => }/ci.yml (100%) delete mode 100644 .github/publish.yml create mode 100644 .github/workflows/ver.yml diff --git a/.github/workflows/ci.yml b/.github/ci.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/ci.yml diff --git a/.github/publish.yml b/.github/publish.yml deleted file mode 100644 index 5629427..0000000 --- a/.github/publish.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: publish - -on: - push: - tags: rc* - branches: staging - - - -jobs: - pub: - runs-on: ubuntu-latest - steps: - - name: echo - run: env \ No newline at end of file diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml new file mode 100644 index 0000000..ad1f5a6 --- /dev/null +++ b/.github/workflows/ver.yml @@ -0,0 +1,11 @@ +name: my workflow +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set env + run: echo "PKGVER=$(sed -n "s/version://p" "$1" | xargs)" >> $GITHUB_ENV + - name: Test + run: echo $PKGVER From b2c3a55989889b6450af151024146bf452340b45 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 00:52:55 +0300 Subject: [PATCH 02/12] setting ver --- .github/workflows/ver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml index ad1f5a6..3c3cb32 100644 --- a/.github/workflows/ver.yml +++ b/.github/workflows/ver.yml @@ -6,6 +6,6 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set env - run: echo "PKGVER=$(sed -n "s/version://p" "$1" | xargs)" >> $GITHUB_ENV + run: echo "PKGVER=$(sed -n "s/version://p" pubspec.yaml | xargs)" >> $GITHUB_ENV - name: Test run: echo $PKGVER From 965714abf9f228fca3b692a4530dbff2a5ce2a33 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:04:49 +0300 Subject: [PATCH 03/12] gh release --- .github/workflows/ver.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml index 3c3cb32..6caba6d 100644 --- a/.github/workflows/ver.yml +++ b/.github/workflows/ver.yml @@ -1,7 +1,7 @@ name: my workflow on: push jobs: - build: + gh-release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -9,3 +9,8 @@ jobs: run: echo "PKGVER=$(sed -n "s/version://p" pubspec.yaml | xargs)" >> $GITHUB_ENV - name: Test run: echo $PKGVER + - name: Release + uses: softprops/action-gh-release@v1 + tag_name: $PKGVER + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 12e4c93b78978bb71b49839a8e35534e954ad3eb Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:05:41 +0300 Subject: [PATCH 04/12] gh release --- .github/workflows/ver.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml index 6caba6d..402c804 100644 --- a/.github/workflows/ver.yml +++ b/.github/workflows/ver.yml @@ -11,6 +11,7 @@ jobs: run: echo $PKGVER - name: Release uses: softprops/action-gh-release@v1 - tag_name: $PKGVER + with: + tag_name: $PKGVER env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bbed82945d1893814f74daab27aad8618bf8c9ad Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:07:02 +0300 Subject: [PATCH 05/12] gh release --- .github/workflows/ver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml index 402c804..16319fb 100644 --- a/.github/workflows/ver.yml +++ b/.github/workflows/ver.yml @@ -12,6 +12,6 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: - tag_name: $PKGVER + tag_name: ${{ PKGVER }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e6b590e1666a59ce1719728b29d6e1e892cb59bd Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:07:26 +0300 Subject: [PATCH 06/12] gh release --- .github/workflows/ver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml index 16319fb..4030e45 100644 --- a/.github/workflows/ver.yml +++ b/.github/workflows/ver.yml @@ -12,6 +12,6 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: - tag_name: ${{ PKGVER }} + tag_name: ${{ $PKGVER }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From ad1e81f22fcee418d18200df55bbb472dfebf9e2 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:08:03 +0300 Subject: [PATCH 07/12] gh release --- .github/workflows/ver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ver.yml b/.github/workflows/ver.yml index 4030e45..c261f9a 100644 --- a/.github/workflows/ver.yml +++ b/.github/workflows/ver.yml @@ -12,6 +12,6 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: - tag_name: ${{ $PKGVER }} + tag_name: ${{ env.PKGVER }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From dd017fe6b4a3c66c98089ad502be72953601a280 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:12:52 +0300 Subject: [PATCH 08/12] publish --- .github/ci.yml | 64 +++++++++++++++++++++++---------- .github/{workflows => }/ver.yml | 2 -- CHANGELOG.md | 2 +- pubspec.yaml | 2 +- 4 files changed, 47 insertions(+), 23 deletions(-) rename .github/{workflows => }/ver.yml (90%) diff --git a/.github/ci.yml b/.github/ci.yml index 9c5a7a9..574512f 100644 --- a/.github/ci.yml +++ b/.github/ci.yml @@ -84,37 +84,63 @@ jobs: run: pub publish -f #run: pub publish -dry-run - to-master: + release: needs: to-pubdev runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Merge current -> master + - uses: actions/checkout@v2- + #- uses: actions/checkout@master + - name: Merge to master branch uses: devmasx/merge-branch@v1.3.1 with: type: now target_branch: master github_token: ${{ github.token }} + #- uses: actions/checkout@v2 + - name: Get version from pubspec.yaml + run: echo "PKGVER=$(sed -n "s/version://p" pubspec.yaml | xargs)" >> $GITHUB_ENV + - name: Publish GitHub release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ env.PKGVER }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -# pub: -# if: startsWith(github.event.ref, 'refs/tags/rc') -# runs-on: ubuntu-latest -# steps: -# - name: echo -# run: echo "Yes" -# -# merge-to-master: -# needs: [test, analyze] -# if: startsWith(github.event.ref, 'refs/tags/rc') +# gh-release: # runs-on: ubuntu-latest # steps: # - uses: actions/checkout@v2 -# - name: Merge current -> master -# uses: devmasx/merge-branch@v1.3.1 +# - name: Get version from pubspec.yaml +# run: echo "PKGVER=$(sed -n "s/version://p" pubspec.yaml | xargs)" >> $GITHUB_ENV +# - name: Publish GitHub release +# uses: softprops/action-gh-release@v1 # with: -# type: now -# target_branch: master -# github_token: ${{ github.token }} +# tag_name: ${{ env.PKGVER }} +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# +# +# +# +# +## pub: +## if: startsWith(github.event.ref, 'refs/tags/rc') +## runs-on: ubuntu-latest +## steps: +## - name: echo +## run: echo "Yes" +## +## merge-to-master: +## needs: [test, analyze] +## if: startsWith(github.event.ref, 'refs/tags/rc') +## runs-on: ubuntu-latest +## steps: +## - uses: actions/checkout@v2 +## - name: Merge current -> master +## uses: devmasx/merge-branch@v1.3.1 +## with: +## type: now +## target_branch: master +## github_token: ${{ github.token }} diff --git a/.github/workflows/ver.yml b/.github/ver.yml similarity index 90% rename from .github/workflows/ver.yml rename to .github/ver.yml index c261f9a..6ad8d5a 100644 --- a/.github/workflows/ver.yml +++ b/.github/ver.yml @@ -7,8 +7,6 @@ jobs: - uses: actions/checkout@v2 - name: Set env run: echo "PKGVER=$(sed -n "s/version://p" pubspec.yaml | xargs)" >> $GITHUB_ENV - - name: Test - run: echo $PKGVER - name: Release uses: softprops/action-gh-release@v1 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 849ad47..c702909 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.2.0+1-alpha +# 0.2.0+2-alpha - Added TimeScheduler diff --git a/pubspec.yaml b/pubspec.yaml index 404bad6..7972a95 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: schedulers description: Dart library for running asynchronous functions on time. Useful for load balancing, rate limiting, lazy execution. repository: https://github.com/rtmigo/schedulers -version: 0.2.0+1-alpha +version: 0.2.0+2-alpha environment: sdk: ">=2.12.0 <3.0.0" From 25ce48714b2cd825cb0ce76e5dc2bfcff599a270 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:13:53 +0300 Subject: [PATCH 09/12] publish --- lib/schedulers.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/schedulers.dart b/lib/schedulers.dart index c592612..34bc630 100644 --- a/lib/schedulers.dart +++ b/lib/schedulers.dart @@ -4,4 +4,4 @@ export 'src/50_interval.dart'; export 'src/50_rateLimiting.dart'; export 'src/50_lazy.dart'; -export 'src/50_time.dart'; \ No newline at end of file +export 'src/50_time.dart'; From 1169ceda074219c138fa57e7364a2209fe5fdb82 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:14:13 +0300 Subject: [PATCH 10/12] publish --- .github/{ => workflows}/ci.yml | 1 + 1 file changed, 1 insertion(+) rename .github/{ => workflows}/ci.yml (99%) diff --git a/.github/ci.yml b/.github/workflows/ci.yml similarity index 99% rename from .github/ci.yml rename to .github/workflows/ci.yml index 574512f..8178c13 100644 --- a/.github/ci.yml +++ b/.github/workflows/ci.yml @@ -84,6 +84,7 @@ jobs: run: pub publish -f #run: pub publish -dry-run + release: needs: to-pubdev runs-on: ubuntu-latest From b4d1f4a6d8fcad878b123d059a237702ad97f949 Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:17:23 +0300 Subject: [PATCH 11/12] publish --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8178c13..574512f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,6 @@ jobs: run: pub publish -f #run: pub publish -dry-run - release: needs: to-pubdev runs-on: ubuntu-latest From bf9519228a0ceaca94a9cc11620291c530f3200c Mon Sep 17 00:00:00 2001 From: rtmigo Date: Tue, 20 Apr 2021 01:21:40 +0300 Subject: [PATCH 12/12] publish --- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 574512f..de4143b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,7 @@ jobs: needs: to-pubdev runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2- + - uses: actions/checkout@v2 #- uses: actions/checkout@master - name: Merge to master branch uses: devmasx/merge-branch@v1.3.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index c702909..798575b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.2.0+2-alpha +# 0.2.0+3-alpha - Added TimeScheduler diff --git a/pubspec.yaml b/pubspec.yaml index 7972a95..ba9afb8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: schedulers description: Dart library for running asynchronous functions on time. Useful for load balancing, rate limiting, lazy execution. repository: https://github.com/rtmigo/schedulers -version: 0.2.0+2-alpha +version: 0.2.0+3-alpha environment: sdk: ">=2.12.0 <3.0.0"