Skip to content

Commit 3e4686b

Browse files
Got back zipping.
1 parent cdcecaa commit 3e4686b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
timeout-minutes: 30
1313
env:
1414
GITHUB_ACTIONS: true
15-
PUBLISH_DIR: bin/Release/net8.0/win-x64/publish
16-
15+
PUBLISH_DIR: ConvertApi.Cli/bin/Release/net8.0/win-x64/publish
1716

1817
steps:
1918
# Checkout the code
@@ -35,15 +34,15 @@ jobs:
3534
run: dotnet publish ConvertApi.Cli/ConvertApi.Cli.csproj -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true
3635

3736
# Create a zip package
38-
# - name: Create ZIP package
39-
# run: |
40-
# mkdir -p output
41-
# zip -j output/convertApi-cli.zip ConvertApi.Cli/bin/Release/net8.0/win-x64/publish/*
37+
- name: Create ZIP package
38+
run: |
39+
mkdir -p output
40+
zip -j output/convertApi-cli.zip ${{ env.PUBLISH_DIR }}/*
4241
4342
# Upload the artifact
4443
- name: Upload artifact
4544
uses: actions/upload-artifact@v3
4645
with:
4746
name: convertApi-cli
48-
path: ConvertApi.Cli/bin/Release/net8.0/win-x64/publish/convertApi-cli.zip
49-
retention-days: 1 # Storing it for 1 day, not to exceed free plan.
47+
path: output/convertApi-cli.zip
48+
retention-days: 1

0 commit comments

Comments
 (0)