mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
fix: Fix publish binary gh action (#177)
This commit is contained in:
parent
5b55659bba
commit
5c2fe2a7a1
2 changed files with 20 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ runs:
|
|||
- name: Download sources from artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: datahaven-sources-${{ inputs.target }}
|
||||
name: datahaven-sources
|
||||
path: .
|
||||
- name: Build production DataHaven
|
||||
shell: bash
|
||||
|
|
@ -53,5 +53,5 @@ runs:
|
|||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: datahavenbinaries-${{inputs.target}}
|
||||
name: datahaven-binaries-${{inputs.target}}
|
||||
path: build/datahaven-node-${{inputs.target }}
|
||||
|
|
|
|||
25
.github/workflows/task-publish-binary.yml
vendored
25
.github/workflows/task-publish-binary.yml
vendored
|
|
@ -12,8 +12,26 @@ on:
|
|||
required: true
|
||||
|
||||
jobs:
|
||||
prepare-sources:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.inputs.to }}
|
||||
fetch-depth: 0
|
||||
- name: Upload sources as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: datahaven-sources
|
||||
path: .
|
||||
retention-days: 1
|
||||
|
||||
build-binary:
|
||||
runs-on: ubuntu-latest
|
||||
needs: ["prepare-sources"]
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
|
|
@ -24,13 +42,6 @@ jobs:
|
|||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.inputs.to }}
|
||||
fetch-depth: 0
|
||||
- name: Upload sources as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: datahaven-sources-${{ matrix.cpu }}
|
||||
path: .
|
||||
retention-days: 1
|
||||
- name: Cargo build
|
||||
uses: ./.github/workflow-templates/build-prod-binary
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue