Skip to content

Commit 41d1b60

Browse files
authored
Merge pull request #5 from isar-community/fix-permissions-workflow
Fix permissions workflow
2 parents 9fea056 + 2bd8591 commit 41d1b60

File tree

2 files changed

+39
-37
lines changed

2 files changed

+39
-37
lines changed

.github/workflows/cron_test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Dart CI Cron
1+
# name: Dart CI Cron
22

3-
on:
4-
schedule:
5-
- cron: "0 18 * * *"
3+
# on:
4+
# schedule:
5+
# - cron: "0 18 * * *"
66

7-
jobs:
8-
testlab:
9-
uses: ./.github/workflows/testlab.yaml
10-
secrets: inherit
7+
# jobs:
8+
# testlab:
9+
# uses: ./.github/workflows/testlab.yaml
10+
# secrets: inherit

.github/workflows/release.yaml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
artifact_name: isar_windows_x64.dll
5454
script: build_windows.sh x64
5555
runs-on: ${{ matrix.os }}
56+
permissions:
57+
contents: write
5658
steps:
5759
- uses: actions/checkout@v3
5860
- name: Prepare Build
@@ -69,10 +71,10 @@ jobs:
6971
asset_name: ${{ matrix.artifact_name }}
7072
tag: ${{ github.ref }}
7173

72-
testlab:
73-
needs: build_binaries
74-
uses: ./.github/workflows/testlab.yaml
75-
secrets: inherit
74+
# testlab:
75+
# needs: build_binaries
76+
# uses: ./.github/workflows/testlab.yaml
77+
# secrets: inherit
7678

7779
build_inspector:
7880
name: Build Inspector
@@ -93,28 +95,28 @@ jobs:
9395
target-folder: ${{ github.ref_name }}
9496
clean: false
9597

96-
publish:
97-
name: Publish
98-
needs: build_inspector
99-
runs-on: ubuntu-latest
100-
steps:
101-
- uses: actions/checkout@v3
102-
- uses: subosito/flutter-action@v2
103-
- name: pub get
104-
run: dart pub get
105-
working-directory: packages/isar
106-
- name: Download Binaries
107-
run: sh tool/download_binaries.sh
108-
- name: pub.dev credentials
109-
run: |
110-
mkdir -p $HOME/.config/dart
111-
echo '${{ secrets.PUB_JSON }}' >> $HOME/.config/dart/pub-credentials.json
112-
- name: Publish isar
113-
run: dart pub publish --force
114-
working-directory: packages/isar
115-
- name: Publish isar_generator
116-
run: dart pub publish --force
117-
working-directory: packages/isar_generator
118-
- name: Publish isar_flutter_libs
119-
run: dart pub publish --force
120-
working-directory: packages/isar_flutter_libs
98+
# publish:
99+
# name: Publish
100+
# needs: build_inspector
101+
# runs-on: ubuntu-latest
102+
# steps:
103+
# - uses: actions/checkout@v3
104+
# - uses: subosito/flutter-action@v2
105+
# - name: pub get
106+
# run: dart pub get
107+
# working-directory: packages/isar
108+
# - name: Download Binaries
109+
# run: sh tool/download_binaries.sh
110+
# - name: pub.dev credentials
111+
# run: |
112+
# mkdir -p $HOME/.config/dart
113+
# echo '${{ secrets.PUB_JSON }}' >> $HOME/.config/dart/pub-credentials.json
114+
# - name: Publish isar
115+
# run: dart pub publish --force
116+
# working-directory: packages/isar
117+
# - name: Publish isar_generator
118+
# run: dart pub publish --force
119+
# working-directory: packages/isar_generator
120+
# - name: Publish isar_flutter_libs
121+
# run: dart pub publish --force
122+
# working-directory: packages/isar_flutter_libs

0 commit comments

Comments
 (0)