Skip to content

Commit

Permalink
Merge branch 'master' into caichestbug
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat authored Jan 31, 2025
2 parents b0f6739 + 54af08d commit 54cc5d5
Show file tree
Hide file tree
Showing 383 changed files with 24,089 additions and 6,264 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
run: |
New-Item -Name bin -ItemType Directory
$rid = if ([System.Environment]::OSVersion.Platform -Match "Unix") { "linux-(x64|amd64)" } else { "win-(x64|amd64)" }
Invoke-WebRequest (Invoke-WebRequest 'https://api.github.com/repos/Pryaxis/TShock/releases' | ConvertFrom-Json | Select-Object -First 1 -ExpandProperty assets | Where-Object browser_download_url -Match $rid | Select-Object -ExpandProperty browser_download_url) -OutFile bin/TShock.zip
$secureGithubToken = ConvertTo-SecureString ${{ secrets.GITHUB_TOKEN }} -AsPlainText -Force
Invoke-WebRequest -Authentication Bearer -Token $secureGithubToken -Uri (Invoke-WebRequest -Authentication Bearer -Token $secureGithubToken -Uri 'https://api.github.com/repos/Pryaxis/TShock/releases' | ConvertFrom-Json | Select-Object -First 1 -ExpandProperty assets | Where-Object browser_download_url -Match $rid | Select-Object -ExpandProperty browser_download_url) -OutFile bin/TShock.zip
Expand-Archive bin/TShock.zip -DestinationPath bin
if ([System.Environment]::OSVersion.Platform -Match "Unix") {
tar xvf bin/TShock-Beta-linux-x64-Release.tar --directory bin
Expand Down
Loading

0 comments on commit 54cc5d5

Please sign in to comment.