|
6 | 6 | types: [published] |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - publish_binaries: |
10 | | - name: Upload ${{ matrix.build_job }} artifact |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - strategy: |
13 | | - matrix: |
14 | | - include: |
15 | | - - os: ubuntu-latest |
16 | | - library_file: libokapi.so |
17 | | - artifact_name: linux |
18 | | - build_job: build_linux |
19 | | - # - os: ubuntu-latest |
20 | | - # library_file: libokapi.so |
21 | | - # artifact_name: linux-arm |
22 | | - # build_job: build_linux_arm |
23 | | - - os: windows-latest |
24 | | - library_file: okapi.dll |
25 | | - artifact_name: windows |
26 | | - build_job: build_windows |
27 | | - - os: windows-latest |
28 | | - library_file: okapi.dll |
29 | | - artifact_name: windows-gnu |
30 | | - build_job: build_windows_gnu |
31 | | - - os: macos-latest |
32 | | - library_file: libokapi.dylib |
33 | | - artifact_name: macos |
34 | | - build_job: build_macos |
35 | | - - os: macos-latest |
36 | | - library_file: "**/*.so" |
37 | | - artifact_name: android |
38 | | - build_job: build_android |
39 | | - - os: macos-latest |
40 | | - library_file: libokapi.a |
41 | | - artifact_name: ios |
42 | | - build_job: build_ios |
43 | | - steps: |
44 | | - - name: Download workflow artifact |
45 | | - |
46 | | - with: |
47 | | - workflow: "build-libs.yml" |
48 | | - path: ./libs |
49 | | - branch: main |
50 | | - - run: | |
51 | | - $json = Invoke-WebRequest 'https://api.github.com/repos/trinsic-id/okapi/releases/latest' ` |
52 | | - -Headers @{ "Authorization" = "Token $env:API_GITHUB_TOKEN"} | ConvertFrom-Json |
53 | | - $version = $json.tag_name |
54 | | - echo "RELEASE_VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append |
55 | | - shell: pwsh |
56 | | - env: |
57 | | - API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }} |
58 | | - - name: Push packages to release |
59 | | - uses: svenstaro/upload-release-action@v2 |
60 | | - if: github.event_name == 'release' |
61 | | - with: |
62 | | - repo_token: ${{ secrets.GITHUB_TOKEN }} |
63 | | - file: ./libs/${{ matrix.artifact_name }}/${{ matrix.library_file }} |
64 | | - asset_name: ${{ matrix.artifact_name }} |
65 | | - tag: ${{ env.RELEASE_VERSION }} |
66 | | - overwrite: true |
67 | | - body: "Okapi binaries" |
68 | | - |
69 | 9 | publish_binaries_bundle: |
70 | 10 | name: Upload libs.zip artifact |
71 | 11 | runs-on: ubuntu-latest |
|
0 commit comments