Skip to content

Commit de7a28b

Browse files
committed
CI: fix permission issues in zip
1 parent 97f0f06 commit de7a28b

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,14 @@ jobs:
4343
run: make -C _build -j4
4444
- name: install files
4545
run: make -C _build install
46+
- name: zip
47+
run: zip -r linux_treesheets_${{ matrix.cxx }}.zip TreeSheets-relocatable
4648
- name: upload build artifacts
4749
if: github.ref == 'refs/heads/master'
4850
uses: actions/upload-artifact@v1
4951
with:
5052
name: Linux TreeSheets ${{ matrix.cxx }}
51-
path: TreeSheets-relocatable
52-
- name: zip
53-
if: github.ref == 'refs/heads/master'
54-
uses: vimtor/action-zip@v1
55-
with:
56-
files: TreeSheets-relocatable/
57-
dest: linux_treesheets_${{ matrix.cxx }}.zip
53+
path: linux_treesheets_${{ matrix.cxx }}.zip
5854
- name: Create release
5955
if: github.ref == 'refs/heads/master'
6056
uses: ncipollo/release-action@v1
@@ -141,18 +137,13 @@ jobs:
141137
xcodebuild -toolchain clang -configuration Release -target TreeSheets -scheme TreeSheets -derivedDataPath build
142138
chmod +x build/Build/Products/Release/TreeSheets.app/Contents/MacOS/TreeSheets
143139
rm -rf build/Build/Products/Release/TreeSheets.app.dSYM
140+
zip -r mac_treesheets.zip osx/TreeSheets/build/Build/Products/Release
144141
- name: upload build artifacts
145142
if: github.ref == 'refs/heads/master'
146143
uses: actions/upload-artifact@v2
147144
with:
148145
name: Mac TreeSheets
149-
path: osx/TreeSheets/build/Build/Products/Release
150-
- name: zip
151-
if: github.ref == 'refs/heads/master'
152-
uses: vimtor/action-zip@v1
153-
with:
154-
files: osx/TreeSheets/build/Build/Products/Release/
155-
dest: mac_treesheets.zip
146+
path: mac_treesheets.zip
156147
- name: Create release
157148
if: github.ref == 'refs/heads/master'
158149
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)