diff --git a/.github/workflows/web-tui.yml b/.github/workflows/web-tui.yml index 820bde0d9..9d774c4f6 100644 --- a/.github/workflows/web-tui.yml +++ b/.github/workflows/web-tui.yml @@ -68,12 +68,30 @@ jobs: with: tool: trunk@0.21.14 + - name: Install cargo-get + uses: taiki-e/install-action@7a79fe8c3a13344501c80d99cae481c1c9085912 # v2.81.10 + with: + tool: cargo-get@1.4.0 + + - name: Get package.version + id: cargo_metadata + run: | + set -x + rsync --version + BALLISTA_VERSION=$(cargo get --entry ballista/core/ package.version) + echo "ballista_version=${BALLISTA_VERSION}" >> "$GITHUB_OUTPUT" + - name: Build working-directory: ballista-cli run: | trunk build --cargo-profile release-nonlto --minify --locked \ --no-default-features --features web + - name: Deploy to Nightlies + #if: ${{ github.ref == 'refs/heads/main' }} + run: | + rsync -rlptDvz -e "ssh -p ${{ secrets.NIGHTLIES_RSYNC_PORT }} -l ${{ secrets.NIGHTLIES_RSYNC_USER }} -i ${{ secrets.NIGHTLIES_RSYNC_KEY }}" target/web-tui/* nightlies.apache.org:/datafusion/ballista/tui/${{ steps.cargo_metadata.outputs.ballista_version }}/ + - name: Upload WASM32 application uses: actions/upload-artifact@v7 with: