Skip to content

Commit 4fcc2f8

Browse files
committed
Update hash-files.yml
1 parent 2acb73e commit 4fcc2f8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/hash-files.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,26 @@ jobs:
1010
hash-files:
1111
runs-on: windows-latest
1212
steps:
13-
- name: Hash all eligible files
14-
shell: bash
13+
- name: Fetch Simba 2 download URL
14+
shell: powershell
15+
run: |
16+
$url = "https://raw.githubusercontent.com/Villavu/Simba-Build-Archive/refs/heads/main/latest.win64"
17+
$response = Invoke-WebRequest -Uri $url -UseBasicParsing
18+
$baseUrl = $response.Content.Trim() -replace 'Win64\.zip\?raw=true$', ''
19+
Write-Output "Base URL: $baseUrl"
20+
echo "::set-output name=baseUrl::$baseUrl"
21+
New-Item -Path ".\Includes" -ItemType Directory
22+
23+
- name: Download Simba 2.0 (64-bit)
24+
shell: powershell
1525
run: |
16-
ls -a
26+
$baseUrl = "${{ steps.simba-url.outputs.baseUrl }}"
27+
$downloadUrl = "$baseUrl" + "Win64.zip?raw=true"
28+
Write-Output "Download URL (64-bit): $downloadUrl"
29+
$outputFile = ".\download.zip"
30+
Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile
31+
Expand-Archive -Path $outputFile -DestinationPath . -Force
32+
Remove-Item -Path $outputFile -Force
1733
1834
- name: Checkout repository
1935
uses: actions/[email protected]

0 commit comments

Comments
 (0)