11 Commits

Author SHA1 Message Date
77ddf68c8f fix upload
All checks were successful
Build and Release / build (push) Successful in 3m22s
2026-05-17 02:52:37 -05:00
c682087de8 t1
All checks were successful
Build and Release / build (push) Successful in 3m24s
2026-05-17 02:45:09 -05:00
7250ec8c58 upload
All checks were successful
Build and Release / build (push) Successful in 3m26s
2026-05-17 02:35:53 -05:00
8a4eea282f upload fix 2026-05-17 02:32:51 -05:00
d63ce05d83 worker upload fix hopefully
Some checks failed
Build and Release / build (push) Failing after 3m29s
2026-05-17 02:22:18 -05:00
ec9cf435ca workflow
All checks were successful
Build and Release / build (push) Successful in 3m26s
2026-05-17 02:13:41 -05:00
580330b99e fixing workflow
Some checks failed
Build and Release / build (push) Has been cancelled
2026-05-17 02:09:14 -05:00
d32fa5c91f fixing workflow 2026-05-17 02:06:44 -05:00
acdeadb06a worker update
Some checks failed
Build and Release / build (push) Failing after 3m30s
2026-05-17 01:59:09 -05:00
f3bf4a4954 worker update
Some checks failed
Build and Release / build (push) Failing after 3m26s
2026-05-17 01:51:36 -05:00
20c962c711 worker fix
Some checks failed
Build and Release / build (push) Failing after 14s
2026-05-17 01:48:52 -05:00

View File

@@ -7,22 +7,18 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: windows-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-pc-windows-msvc
- name: Build release binary - name: Build release binary
shell: powershell
run: cargo build --release run: cargo build --release
- name: Create Gitea Release - name: Create Gitea Release
id: create_release id: create_release
shell: powershell
run: | run: |
$tag = "${{ github.ref_name }}" $tag = "${{ github.ref_name }}"
$body = @{ $body = @{
@@ -42,18 +38,25 @@ jobs:
} ` } `
-Body $body -Body $body
echo "release_id=$($response.id)" >> $env:GITHUB_OUTPUT $releaseId = $response.id
Write-Host "Created release ID: $releaseId"
Add-Content -Path $env:GITHUB_OUTPUT -Value "release_id=$releaseId"
- name: Upload binary asset - name: Upload binary asset
shell: powershell
run: | run: |
$releaseId = "${{ steps.create_release.outputs.release_id }}" $releaseId = "${{ steps.create_release.outputs.release_id }}"
$filePath = "target\release\tickr.exe" $filePath = (Resolve-Path "target\release\tickr.exe").Path
Invoke-RestMethod ` Write-Host "Working dir: $(Get-Location)"
-Uri "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe" ` Write-Host "Release ID: $releaseId"
-Method Post ` Write-Host "File: $filePath"
-Headers @{
Authorization = "token ${{ secrets.RELEASE_TOKEN }}" if (!(Test-Path $filePath)) {
} ` Write-Error "File not found: $filePath"
-InFile $filePath ` exit 1
-ContentType "application/octet-stream" }
$uri = "https://gitea.whitlocktech.com/api/v1/repos/whitlocktech/tickr/releases/$releaseId/assets?name=tickr.exe"
& curl.exe -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -F "attachment=@$filePath" "$uri"