Skip to content

Commit d60dd8c

Browse files
committed
tar the workspace
1 parent 04cdb60 commit d60dd8c

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
- name: Build
3333
run: ./gradlew clean build
3434

35+
- name: Tar workspace
36+
run: tar -cf workspace.tar --exclude=workspace.tar .
37+
3538
- name: Upload workspace
3639
uses: actions/upload-artifact@v7
3740
with:
3841
name: workspace
39-
path: .
42+
path: workspace.tar
4043
retention-days: 1
4144

4245
publish:
@@ -54,6 +57,9 @@ jobs:
5457
name: workspace
5558
path: .
5659

60+
- name: Extract workspace
61+
run: tar -xf workspace.tar && rm workspace.tar
62+
5763
- name: Setup Java
5864
uses: actions/setup-java@v5
5965
with:
@@ -66,7 +72,7 @@ jobs:
6672
cache-read-only: true
6773

6874
- name: Publish to ${{ matrix.target }}
69-
run: chmod +x gradlew && ./gradlew ${{ matrix.target }}
75+
run: ./gradlew ${{ matrix.target }}
7076

7177
github:
7278
needs: build
@@ -78,6 +84,9 @@ jobs:
7884
name: workspace
7985
path: .
8086

87+
- name: Extract workspace
88+
run: tar -xf workspace.tar && rm workspace.tar
89+
8190
- name: Get Version
8291
id: get-version
8392
run: |

0 commit comments

Comments
 (0)