chore: bump to v0.1.3 with blind test fixes #3
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - target: aarch64-apple-darwin | |
| os: macos-latest | |
| package: pdf-translate-darwin-arm64 | |
| binary: pdf-translate-core | |
| - target: x86_64-apple-darwin | |
| os: macos-latest | |
| package: pdf-translate-darwin-x64 | |
| binary: pdf-translate-core | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| package: pdf-translate-linux-x64-gnu | |
| binary: pdf-translate-core | |
| - target: x86_64-pc-windows-msvc | |
| os: windows-latest | |
| package: pdf-translate-win32-x64 | |
| binary: pdf-translate-core.exe | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Build | |
| run: cargo build --release --target ${{ matrix.target }} --manifest-path crates/core/Cargo.toml | |
| - name: Copy binary to package | |
| shell: bash | |
| run: cp target/${{ matrix.target }}/release/${{ matrix.binary }} packages/${{ matrix.package }}/ | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.package }} | |
| path: packages/${{ matrix.package }}/ | |
| publish: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| package-manager-cache: false | |
| - uses: pnpm/action-setup@v4 | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts/ | |
| - name: Copy binaries to packages | |
| run: | | |
| for pkg in pdf-translate-darwin-arm64 pdf-translate-darwin-x64 pdf-translate-linux-x64-gnu pdf-translate-win32-x64; do | |
| cp artifacts/$pkg/* packages/$pkg/ | |
| chmod +x packages/$pkg/pdf-translate-core* || true | |
| ls -lh packages/$pkg/ | |
| done | |
| - name: Publish platform packages | |
| run: | | |
| for pkg in pdf-translate-darwin-arm64 pdf-translate-darwin-x64 pdf-translate-linux-x64-gnu pdf-translate-win32-x64; do | |
| cd packages/$pkg | |
| npm publish --access public --provenance || echo "Skipped $pkg (may already exist)" | |
| cd ../.. | |
| done | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Build CLI | |
| run: pnpm --filter pdf-translate build | |
| - name: Publish CLI | |
| run: | | |
| cd packages/cli | |
| npm publish --access public --provenance |