Skip to content

Commit 1178ebc

Browse files
committed
release workflow: workaround github actions bug
Github actions is broken and expands ${{ github.workspace }} to different paths depending on context: actions/runner#2058
1 parent ea665cc commit 1178ebc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
-DENABLE_OPENGL=ON \
9292
-DENABLE_TESTS=On \
9393
-DBUILD_SENTRY_PLUGIN=OFF \
94-
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/dist \
94+
-DCMAKE_INSTALL_PREFIX=$PWD/dist \
9595
-GNinja
9696
9797
- name: Build & Install
@@ -101,7 +101,8 @@ jobs:
101101
uses: actions/upload-artifact@v4
102102
with:
103103
name: flutterpi-${{ matrix.target }}-${{ matrix.buildtype }}
104-
path: ${{ github.workspace }}/dist/bin/flutter-pi
104+
path: dist/bin/flutter-pi
105+
if-no-files-found: error
105106

106107
publish:
107108
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/release/')

0 commit comments

Comments
 (0)