Upload snapshot ZIP files as artifacts directly
This commit is contained in:
parent
abe77409b5
commit
23f0ece561
|
@ -35,6 +35,7 @@ jobs:
|
||||||
path: bin
|
path: bin
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
include-hidden-files: true
|
include-hidden-files: true
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
package:
|
package:
|
||||||
needs: cmake
|
needs: cmake
|
||||||
|
@ -57,20 +58,13 @@ jobs:
|
||||||
name: build-x86
|
name: build-x86
|
||||||
path: bin
|
path: bin
|
||||||
|
|
||||||
- name: Upload Artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: bin-${{ github.sha}}
|
|
||||||
path: bin
|
|
||||||
if-no-files-found: error
|
|
||||||
include-hidden-files: true
|
|
||||||
|
|
||||||
- name: Create snapshot
|
- name: Create snapshot
|
||||||
run: |
|
run: |
|
||||||
curl.exe -L https://github.com/x64dbg/translations/releases/download/translations/qm.zip -o bin\qm.zip
|
curl.exe -L https://github.com/x64dbg/translations/releases/download/translations/qm.zip -o bin\qm.zip
|
||||||
7z x bin\qm.zip -obin
|
7z x bin\qm.zip -obin
|
||||||
cmake -P .\cmake\release.cmake
|
cmake -P .\cmake\release.cmake
|
||||||
$timestamp = Get-Date -Format "yyyy-MM-dd_HH_mm"
|
$timestamp = Get-Date -Format "yyyy-MM-dd_HH_mm"
|
||||||
|
echo "timestamp=$timestamp" >> $env:GITHUB_ENV
|
||||||
cd release
|
cd release
|
||||||
7z a -tzip -mx=9 ..\snapshot_$timestamp.zip pluginsdk release commithash.txt
|
7z a -tzip -mx=9 ..\snapshot_$timestamp.zip pluginsdk release commithash.txt
|
||||||
7z a -tzip -mx=9 ..\symbols-snapshot_$timestamp.zip pdb commithash.txt
|
7z a -tzip -mx=9 ..\symbols-snapshot_$timestamp.zip pdb commithash.txt
|
||||||
|
@ -78,7 +72,22 @@ jobs:
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: x64dbg-${{ github.sha}}
|
name: snapshot_${{ env.timestamp }}.zip
|
||||||
path: '*.zip'
|
path: |
|
||||||
|
release/pluginsdk
|
||||||
|
release/release
|
||||||
|
release/commithash.txt
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
include-hidden-files: true
|
include-hidden-files: true
|
||||||
|
compression-level: 9
|
||||||
|
|
||||||
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: symbols-snapshot_${{ env.timestamp }}.zip
|
||||||
|
path: |
|
||||||
|
release/pdb
|
||||||
|
release/commithash.txt
|
||||||
|
if-no-files-found: error
|
||||||
|
include-hidden-files: true
|
||||||
|
compression-level: 9
|
||||||
|
|
Loading…
Reference in New Issue