ci: run the CI every day at 10AM (#1022) #362
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish_dart_packages: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: [ "mobx", "mobx_codegen", "mobx_lint" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish if new | |
id: publish | |
uses: k-paxian/dart-package-publisher@master | |
with: | |
relativePath: ${{ matrix.package }} | |
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} | |
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} | |
suppressBuildRunner: true | |
skipTests: true | |
- name: Tag commit | |
if: steps.publish.outputs.success | |
uses: hole19/git-tag-action@master | |
env: | |
TAG: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish_flutter_packages: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: [ "flutter_mobx" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Publish if new | |
id: publish | |
uses: k-paxian/dart-package-publisher@master | |
with: | |
flutter: true | |
relativePath: ${{ matrix.package }} | |
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} | |
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} | |
suppressBuildRunner: true | |
skipTests: true | |
- name: Tag commit | |
if: steps.publish.outputs.success | |
uses: hole19/git-tag-action@master | |
env: | |
TAG: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |