mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-26 17:28:09 -07:00
Switch release artifact to zip with SHA256
This change updates the build_release_zip workflow job to create and upload a .zip archive and its corresponding .sha256 checksum file instead of a .tar archive.
This commit is contained in:
@@ -107,13 +107,19 @@ jobs:
|
|||||||
VERSIONED_DIR="rayhunter-v${{ env.VERSION }}"
|
VERSIONED_DIR="rayhunter-v${{ env.VERSION }}"
|
||||||
mkdir "$VERSIONED_DIR"
|
mkdir "$VERSIONED_DIR"
|
||||||
mv dist/* "$VERSIONED_DIR"/
|
mv dist/* "$VERSIONED_DIR"/
|
||||||
- name: Archive release directory
|
- name: Archive release directory as zip
|
||||||
run: |
|
run: |
|
||||||
VERSIONED_DIR="rayhunter-v${{ env.VERSION }}"
|
VERSIONED_DIR="rayhunter-v${{ env.VERSION }}"
|
||||||
tar -cvf "$VERSIONED_DIR.tar" "$VERSIONED_DIR"
|
zip -r "$VERSIONED_DIR.zip" "$VERSIONED_DIR"
|
||||||
- name: Upload release
|
- name: Compute SHA256 of zip
|
||||||
|
run: |
|
||||||
|
VERSIONED_DIR="rayhunter-v${{ env.VERSION }}"
|
||||||
|
sha256sum "$VERSIONED_DIR.zip" > "$VERSIONED_DIR.zip.sha256"
|
||||||
|
- name: Upload zip release and sha256
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rayhunter-v${{ env.VERSION }}.tar
|
name: rayhunter-v${{ env.VERSION }}
|
||||||
path: rayhunter-v${{ env.VERSION }}.tar
|
path: |
|
||||||
|
rayhunter-v${{ env.VERSION }}.zip
|
||||||
|
rayhunter-v${{ env.VERSION }}.zip.sha256
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user