Skip to content

Commit b0e7319

Browse files
committed
im gonna lose it bro
1 parent a58a458 commit b0e7319

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ jobs:
7474
- name: Download artifacts
7575
uses: actions/download-artifact@v4
7676

77-
- name: Archive artifacts
77+
- name: Zip it up
7878
shell: bash
7979
run: |
8080
artifact_dir=$(find * -maxdepth 0 -type d | head -n 1)
81+
zip_name="offstyle-database-${{ github.ref_name }}.zip"
8182
cd "$artifact_dir"
82-
zip -rq "../$artifact_dir.zip" addons/
83+
zip -rq "../$zip_name" addons/
8384
cd ..
84-
echo "zip_file=$artifact_dir.zip" >> $GITHUB_ENV
85+
echo "zip_file=$zip_name" >> $GITHUB_ENV
8586
8687
- name: Generate changelog
8788
id: changelog
@@ -148,16 +149,15 @@ jobs:
148149
- name: Download artifacts
149150
uses: actions/download-artifact@v4
150151

151-
- name: Create clean zip file
152+
- name: Create Discord zip
152153
shell: bash
153154
run: |
154-
# Find the artifact directory and extract the addons folder
155155
artifact_dir=$(find * -maxdepth 0 -type d | head -n 1)
156-
# Create a clean zip with proper addons/ structure using original artifact name
156+
zip_name="offstyle-database-${{ github.ref_name }}.zip"
157157
cd "$artifact_dir"
158-
zip -rq "../$artifact_dir.zip" addons/
158+
zip -rq "../$zip_name" addons/
159159
cd ..
160-
echo "zip_file=$artifact_dir.zip" >> $GITHUB_ENV
160+
echo "zip_file=$zip_name" >> $GITHUB_ENV
161161
162162
- name: Get commit list
163163
id: commits

0 commit comments

Comments
 (0)