chore(CI): testing releasing building on PRs #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Indexify Binaries COPY | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- 'server/**' | |
- '.github/workflows/test_build_docker_indexify_server_workflow.yaml' | |
env: | |
CARGO_TERM_COLOR: always | |
defaults: | |
run: | |
working-directory: ./server | |
jobs: | |
build-release-packages: | |
uses: ./.github/workflows/build_indexify_server_release_packages.yaml | |
extract-version: | |
name: Extract Version Number | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.version_extraction.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: version_extraction | |
run: echo "version=$(cargo metadata --format-version 1 | jq '.packages[] | select(.name == "indexify-server") | .version' | xargs)" >> "$GITHUB_OUTPUT" | |
create-release: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
needs: | |
- build-release-packages | |
- extract-version | |
steps: | |
- uses: actions/checkout@v4 | |
- run: mkdir -p /tmp/release | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: /tmp/release/ | |
- name: List Artifacts | |
run: ls -la /tmp/release | |
- name: Name Artifacts | |
run: | | |
# mv /tmp/release/indexify-server-windows-amd64.exe/indexify-server.exe /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-windows-amd64.exe | |
mv /tmp/release/indexify-server-darwin-arm64/indexify-server /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-darwin-arm64 | |
# mv /tmp/release/indexify-server-darwin-amd64/indexify-server /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-darwin-amd64 | |
mv /tmp/release/indexify-server-linux-amd64/indexify-server /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64 | |
mv /tmp/release/indexify-server-deb-linux-amd64/indexify-server_${{ needs.extract-version.outputs.version }}-1_amd64.deb /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-amd64.deb | |
mv /tmp/release/indexify-server-deb-linux-aarch64/indexify-server_${{ needs.extract-version.outputs.version }}-1_arm64.deb /tmp/release/indexify-server-${{ needs.extract-version.outputs.version }}-linux-arm64.deb | |
- name: List Artifacts | |
run: ls -la /tmp/release |