Skip to content

Commit

Permalink
Migrate to SourceForge for uploading dev builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary committed Sep 14, 2020
1 parent 265220f commit ac6ce0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
40 changes: 16 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
if ($LASTEXITCODE -ne 0) { Exit 1 }
- if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
run: |
$zip_name = "LxRunOffline-$(git describe --tags)-mingw.zip"
curl.exe -fsS `
-T $zip_name `
-u ddosolitary:${{ secrets.BINTRAY_KEY }} `
-H "X-Bintray-Package: default" `
-H "X-Bintray-Version: default" `
-H "X-Bintray-Publish: 1" `
https://api.bintray.com/content/ddosolitary/dev-releases/LxRunOffline/$zip_name
mkdir -Force ~\.ssh
[IO.File]::WriteAllBytes( `
"$Env:USERPROFILE\.ssh\id_ed25519", `
[Convert]::FromBase64String("${{ secrets.DEPLOYKEY }}"))
cmd /c 'ssh-keyscan web.sourceforge.net > "%USERPROFILE%\.ssh\known_hosts" 2>nul'
cmd /c "scp LxRunOffline-$(git describe --tags)-mingw.zip [email protected]:/home/project-web/ddosolitary-builds/htdocs/LxRunOffline/ 2>&1"
if ($LASTEXITCODE -ne 0) { exit 1 }
build-msvc:
runs-on: windows-latest
steps:
Expand Down Expand Up @@ -57,23 +56,16 @@ jobs:
if ($LASTEXITCODE -ne 0) { Exit 1 }
- if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
run: |
mkdir -Force ~\.ssh
[IO.File]::WriteAllBytes( `
"$Env:USERPROFILE\.ssh\id_ed25519", `
[Convert]::FromBase64String("${{ secrets.DEPLOYKEY }}"))
cmd /c 'ssh-keyscan web.sourceforge.net > "%USERPROFILE%\.ssh\known_hosts" 2>nul'
$version = git describe --tags
$zip_name = "LxRunOffline-$version-msvc.zip"
curl.exe -fsS `
-T $zip_name `
-u ddosolitary:${{ secrets.BINTRAY_KEY }} `
-H "X-Bintray-Package: default" `
-H "X-Bintray-Version: default" `
-H "X-Bintray-Publish: 1" `
https://api.bintray.com/content/ddosolitary/dev-releases/LxRunOffline/$zip_name
cmd /c "scp LxRunOffline-$version-msvc.zip [email protected]:/home/project-web/ddosolitary-builds/htdocs/LxRunOffline/ 2>&1"
if ($LASTEXITCODE -ne 0) { exit 1 }
if (-not $version.Contains("-")) {
cmake -DCOMPONENT=choco -DCMAKE_INSTALL_PREFIX="$PWD" -P cmake_install.cmake
$pkg_name = "lxrunoffline.$($version.Substring(1)).nupkg"
curl.exe -fsS `
-T $pkg_name `
-u ddosolitary:${{ secrets.BINTRAY_KEY }} `
-H "X-Bintray-Package: default" `
-H "X-Bintray-Version: default" `
-H "X-Bintray-Publish: 1" `
https://api.bintray.com/content/ddosolitary/dev-releases/LxRunOffline/$pkg_name
cmd /c "scp lxrunoffline.$($version.Substring(1)).nupkg [email protected]:/home/project-web/ddosolitary-builds/htdocs/LxRunOffline/ 2>&1"
if ($LASTEXITCODE -ne 0) { exit 1 }
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Alipay

You can install via Chocolatey `choco install lxrunoffline`, Scoop `scoop bucket add extras`, `scoop install lxrunoffline`, or download the binaries directly:
- Latest releases: https://github.com/DDoSolitary/LxRunOffline/releases
- Development builds: https://dl.bintray.com/ddosolitary/dev-releases/LxRunOffline/
- Development builds: https://ddosolitary-builds.sourceforge.io/LxRunOffline/

### Shell extension

Expand Down

0 comments on commit ac6ce0c

Please sign in to comment.