Skip to content

Commit

Permalink
Merge pull request isar-community#5 from isar-community/fix-permissio…
Browse files Browse the repository at this point in the history
…ns-workflow

Fix permissions workflow
  • Loading branch information
mrclauss authored Mar 2, 2024
2 parents 9fea056 + 2bd8591 commit 41d1b60
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 37 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cron_test.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Dart CI Cron
# name: Dart CI Cron

on:
schedule:
- cron: "0 18 * * *"
# on:
# schedule:
# - cron: "0 18 * * *"

jobs:
testlab:
uses: ./.github/workflows/testlab.yaml
secrets: inherit
# jobs:
# testlab:
# uses: ./.github/workflows/testlab.yaml
# secrets: inherit
60 changes: 31 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
artifact_name: isar_windows_x64.dll
script: build_windows.sh x64
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Prepare Build
Expand All @@ -69,10 +71,10 @@ jobs:
asset_name: ${{ matrix.artifact_name }}
tag: ${{ github.ref }}

testlab:
needs: build_binaries
uses: ./.github/workflows/testlab.yaml
secrets: inherit
# testlab:
# needs: build_binaries
# uses: ./.github/workflows/testlab.yaml
# secrets: inherit

build_inspector:
name: Build Inspector
Expand All @@ -93,28 +95,28 @@ jobs:
target-folder: ${{ github.ref_name }}
clean: false

publish:
name: Publish
needs: build_inspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- name: pub get
run: dart pub get
working-directory: packages/isar
- name: Download Binaries
run: sh tool/download_binaries.sh
- name: pub.dev credentials
run: |
mkdir -p $HOME/.config/dart
echo '${{ secrets.PUB_JSON }}' >> $HOME/.config/dart/pub-credentials.json
- name: Publish isar
run: dart pub publish --force
working-directory: packages/isar
- name: Publish isar_generator
run: dart pub publish --force
working-directory: packages/isar_generator
- name: Publish isar_flutter_libs
run: dart pub publish --force
working-directory: packages/isar_flutter_libs
# publish:
# name: Publish
# needs: build_inspector
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# - name: pub get
# run: dart pub get
# working-directory: packages/isar
# - name: Download Binaries
# run: sh tool/download_binaries.sh
# - name: pub.dev credentials
# run: |
# mkdir -p $HOME/.config/dart
# echo '${{ secrets.PUB_JSON }}' >> $HOME/.config/dart/pub-credentials.json
# - name: Publish isar
# run: dart pub publish --force
# working-directory: packages/isar
# - name: Publish isar_generator
# run: dart pub publish --force
# working-directory: packages/isar_generator
# - name: Publish isar_flutter_libs
# run: dart pub publish --force
# working-directory: packages/isar_flutter_libs

0 comments on commit 41d1b60

Please sign in to comment.