Skip to content

Split Confluence into its own key highlight in README #2

Split Confluence into its own key highlight in README

Split Confluence into its own key highlight in README #2

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${{ github.ref_name }}" \
--repo "${{ github.repository }}" \
--title "Infigraph ${{ github.ref_name }}" \
--generate-release-notes
build:
name: Build (${{ matrix.target }})
needs: create-release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: aarch64-apple-darwin
archive: tar.gz
- os: macos-13
target: x86_64-apple-darwin
archive: tar.gz
- os: windows-latest
target: x86_64-pc-windows-msvc
archive: zip
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
key: release-${{ matrix.target }}
- name: Build
run: cargo build --release --target ${{ matrix.target }} -p infigraph-cli -p infigraph-mcp
- name: Sign (macOS)
if: runner.os == 'macOS'
run: |
codesign --force --deep --sign - target/${{ matrix.target }}/release/infigraph
codesign --force --deep --sign - target/${{ matrix.target }}/release/infigraph-mcp
- name: Package (unix)
if: matrix.archive == 'tar.gz'
run: |
cp target/${{ matrix.target }}/release/infigraph .
cp target/${{ matrix.target }}/release/infigraph-mcp .
tar -czf infigraph-${{ matrix.target }}.tar.gz infigraph infigraph-mcp models/
echo "ASSET=infigraph-${{ matrix.target }}.tar.gz" >> $GITHUB_ENV
- name: Package (windows)
if: matrix.archive == 'zip'
shell: pwsh
run: |
Copy-Item target/${{ matrix.target }}/release/infigraph.exe .
Copy-Item target/${{ matrix.target }}/release/infigraph-mcp.exe .
Compress-Archive -Path infigraph.exe, infigraph-mcp.exe, models/ -DestinationPath infigraph-${{ matrix.target }}.zip
echo "ASSET=infigraph-${{ matrix.target }}.zip" >> $env:GITHUB_ENV
- name: Upload to release
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload "${{ github.ref_name }}" "${{ env.ASSET }}" --clobber --repo "${{ github.repository }}"