Skip to content

Commit 1926c7c

Browse files
committed
upload binaries as .tar.xz
1 parent bc52139 commit 1926c7c

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,20 @@ jobs:
9797
- name: Build & Install
9898
run: cmake --build ./build --target install --config ${{ matrix.buildtype }}
9999

100+
- name: Package
101+
run: |
102+
mkdir -p artifact
103+
104+
pushd artifact
105+
cp -r ../dist/bin/flutter-pi .
106+
107+
tar -cJf ../flutter-pi-${{ matrix.target }}-${{ matrix.buildtype }}.tar.xz .
108+
100109
- name: Upload artifact
101110
uses: actions/upload-artifact@v4
102111
with:
103-
name: flutterpi-${{ matrix.target }}-${{ matrix.buildtype }}
104-
path: dist/bin/flutter-pi
112+
name: flutterpi-${{ matrix.target }}-${{ matrix.buildtype }}-tar-xz
113+
path: .
105114
if-no-files-found: error
106115

107116
publish:
@@ -110,15 +119,20 @@ jobs:
110119
runs-on: ubuntu-latest
111120
needs: build
112121
steps:
113-
- name: Download artifact
122+
- name: Download artifacts
114123
uses: actions/download-artifact@v4
115124
with:
116-
path: binaries
125+
path: artifacts
126+
127+
- name: Prepare release
128+
run: |
129+
mkdir -p release-files
130+
mv artifacts/*-tar-xz/* .
117131
118132
- name: Publish Release
119133
uses: softprops/action-gh-release@v1
120134
with:
121135
fail_on_unmatched_files: true
122-
files: binaries/*
136+
files: release-files/*
123137
name: ${{ github.ref_name }}
124138
body: ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)