Skip to content

Commit

Permalink
merged from master - CI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
desistefanova committed Feb 14, 2022
1 parent eb26a4c commit fcf91a6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 103 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/realm-dart-linux.yml
Expand Up @@ -4,20 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-linux.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-linux.yml' # except this one

jobs:
CI:
Expand Down Expand Up @@ -56,9 +45,6 @@ jobs:
dart run realm_dart archive --source-dir $(pwd)/binary/linux --output-file $ARCHIVE_PATH
- name: Release artifacts
# env:
# EVENT_CONTEXT: ${{ toJSON(github.event) }}
# EVENT_CONTEXT: ${{ toJSON(github) }}
if: ${{ success() && github.event_name == 'push' && github.ref_type == 'tag' }}
uses: ncipollo/release-action@v1
with:
Expand All @@ -71,10 +57,4 @@ jobs:
artifacts: ${{ env.ARCHIVE_PATH }}
body: "ADD RELEASE NOTES"
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
# run: |
# echo "Creating a release for tag ${{ github.ref_name }}"
# # echo $EVENT_CONTEXT
# # echo "github.event_name ${{ github.event_name }}"
# # echo "github.ref_type ${{ github.ref_type }}"
# # echo "github.ref_name ${{ github.ref_name }}"
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 1 addition & 12 deletions .github/workflows/realm-dart-macos.yml
Expand Up @@ -4,20 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-macos.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-macos.yml' # except this one

jobs:
CI:
Expand All @@ -41,7 +30,7 @@ jobs:
- name : Setup Dart SDK
uses: dart-lang/setup-dart@main
with:
sdk: beta
sdk: stable

- name: Install dependencies
run: dart pub get
Expand Down
24 changes: 1 addition & 23 deletions .github/workflows/realm-dart-windows.yml
Expand Up @@ -4,20 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-windows.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'flutter/**'
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-dart-windows.yml' # except this one

jobs:
CI:
Expand All @@ -26,17 +15,6 @@ jobs:
REALM_CI: true

steps:
# - name: SET VARS
# run: |
# echo "ARCHIVE_PATH=$(pwd)\\binary\\windows.tar.gz" >> $env:GITHUB_ENV
# echo "ARCHIVE_SOURCE_PATH=$(pwd)\\binary" >> $env:GITHUB_ENV
# - name: PRINT VARS
# run: |
# echo $ARCHIVE_PATH
# echo $ARCHIVE_SOURCE_PATH
# echo ${{ env.ARCHIVE_PATH }}
# echo ${{ env.ARCHIVE_SOURCE_PATH }}

- name: Checkout
uses: actions/checkout@v2
with:
Expand All @@ -52,7 +30,7 @@ jobs:
- name : Setup Dart SDK
uses: dart-lang/setup-dart@main
with:
sdk: beta
sdk: stable

- name: Install dependencies
run: dart pub get
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-android.yml
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-android.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-android.yml' # except this one

jobs:
CI:
Expand Down Expand Up @@ -44,7 +35,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Install dependencies
run: flutter pub get
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-ios.yml
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-ios.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-ios.yml' # except this one

jobs:
CI:
Expand Down Expand Up @@ -56,7 +47,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Install dependencies
run: flutter pub get
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-macos.yml
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-macos.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-macos.yml' # except this one

jobs:
CI:
Expand All @@ -35,7 +26,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Enable Flutter Desktop support
run: flutter config --enable-macos-desktop
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/realm-flutter-windows.yml
Expand Up @@ -4,18 +4,9 @@ on:
push:
branches:
- master
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-windows.yml' # except this one
tags:
- '[0-9]+.[0-9]+.[0-9]+**' # matches tags like number(s).number(s).number(s)(any) for ex: 1.0.0 and also 1.0.0+beta

pull_request:
paths-ignore:
- 'generator/**'
- '.github/**'
- '!.github/workflows/realm-flutter-windows.yml' # except this one

jobs:
CI:
Expand All @@ -35,7 +26,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'

- name: Enable Flutter Desktop support
run: flutter config --enable-windows-desktop
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/realm-generator.yml
Expand Up @@ -4,14 +4,7 @@ on:
push:
branches:
- master
paths:
- 'generator/**'
- .github/workflows/realm-generator.yml

pull_request:
paths:
- 'generator/**'
- .github/workflows/realm-generator.yml

jobs:
CI:
Expand Down

0 comments on commit fcf91a6

Please sign in to comment.