Skip to content

Commit 08da115

Browse files
committed
Fix: Ensure consistent artifact packaging for releases
This commit updates the artifact packaging workflow to ensure that all release artifacts (DEB, MSI, and DMG) are consistently moved to the `artifacts` directory. This improves clarity and simplifies the artifact upload process.
1 parent 612fd32 commit 08da115

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ jobs:
9595
run: |
9696
cargo install cargo-deb --force
9797
cargo deb --target ${{ matrix.target }} --manifest-path app/Cargo.toml
98+
mkdir -p artifacts
99+
mv app/target/${{ matrix.target }}/debian/*.deb artifacts/
100+
98101
env:
99102
DEB_BUILD_OPTIONS: nocheck
100103

@@ -106,6 +109,8 @@ jobs:
106109
cargo wix init
107110
cargo wix
108111
cd ..
112+
mkdir -p artifacts
113+
mv app/target/wix/*.msi artifacts/
109114
shell: bash
110115

111116
- name: Package macOS (.dmg)
@@ -130,19 +135,13 @@ jobs:
130135
run: |
131136
mkdir -p dist
132137
create-dmg \
133-
--overwrite \
134-
--dmg-title="GitSwift Installer" \
138+
--volname="GitSwift Installer" \
135139
"app/target/aarch64-apple-darwin/release/bundle/osx/gitswift.app" \
136140
"dist/"
137-
138-
139-
- name: Move Files to Artifact Directory
140-
run: |
141141
mkdir -p artifacts
142-
mv app/target/${{ matrix.target }}/debian/*.deb artifacts/
143-
mv app/target/wix/*.msi artifacts/
144142
mv dist/*.dmg artifacts/
145143
144+
146145
- name: Upload Artifacts
147146
uses: actions/upload-artifact@v4
148147
with:

0 commit comments

Comments
 (0)