-
Notifications
You must be signed in to change notification settings - Fork 0
Support crates.io publishing and update documentation #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2ea4e65
d03c46b
6898a24
5a26198
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -85,7 +85,9 @@ jobs: | |||||
|
|
||||||
| - name: Package VS Code Extension | ||||||
| working-directory: ./extensions/vscode | ||||||
| run: npm run build -- --target ${{ matrix.vscode_target }} -o ../../dist/path-server_vscode_${{ matrix.vscode_target }}_${{ github.ref_name }}.vsix | ||||||
| run: npm run build -- --target ${{ matrix.vscode_target }} -o | ||||||
| ../../dist/path-server_vscode_${{ matrix.vscode_target }}_${{ | ||||||
| github.ref_name }}.vsix | ||||||
|
|
||||||
| - name: Upload Artifacts | ||||||
| uses: actions/upload-artifact@v7 | ||||||
|
|
@@ -94,7 +96,7 @@ jobs: | |||||
| path: dist/* | ||||||
|
|
||||||
| # Step 3: Create Release on GitHub | ||||||
| release: | ||||||
| release-github: | ||||||
| name: Create GitHub Release | ||||||
| needs: build | ||||||
| runs-on: ubuntu-latest | ||||||
|
|
@@ -120,3 +122,24 @@ jobs: | |||||
| prerelease: false | ||||||
| env: | ||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
|
||||||
| # Step 4: Release to crates.io | ||||||
| release-crates-io: | ||||||
| name: Release to crates.io | ||||||
| needs: build | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Checkout code | ||||||
| uses: actions/checkout@v6 | ||||||
|
|
||||||
| - name: Install Rust | ||||||
| uses: dtolnay/rust-toolchain@stable | ||||||
|
|
||||||
| - name: Install toml-cli | ||||||
| run: cargo install toml-cli | ||||||
|
||||||
| run: cargo install toml-cli | |
| run: cargo install toml-cli --version 0.2.3 --locked |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,9 +3,12 @@ name = "path-server" | |||||
| version = "1.1.2" | ||||||
| edition = "2024" | ||||||
| description = "A fast and lightweight language server for path completion." | ||||||
| license = "Apache-2.0" | ||||||
| repository = "https://github.com/kunlinglio/path-server" | ||||||
| homepage = "https://github.com/kunlinglio/path-server" | ||||||
| keywords = ["lsp", "language-server", "path", "path-completion"] | ||||||
| license = "Apache-2.0" | ||||||
| readme = "README.md" | ||||||
| exclude = ["extensions/**", "assets/**", ".github/**", ".vscode/**"] | ||||||
|
||||||
| exclude = ["extensions/**", "assets/**", ".github/**", ".vscode/**"] | |
| exclude = ["extensions/**", ".github/**", ".vscode/**"] |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,9 @@ | ||||||
| //! **Path Server** is an LSP server for path completion. | ||||||
| //! | ||||||
| //! **⚠️ WARNING: Internal API** | ||||||
| //! | ||||||
| //! This crate is primarily designed to be distributed as a standalone binary. And has no intention to maintain as a library dependency for other projects for now. | ||||||
|
||||||
| //! This crate is primarily designed to be distributed as a standalone binary. And has no intention to maintain as a library dependency for other projects for now. | |
| //! This crate is primarily intended to be distributed as a standalone binary and is not currently maintained as a library dependency for other projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
run:value is split across multiple lines without using a block scalar (|/>), which will insert newlines into the command. That will break the-o <output>argument (and also splits the${{ github.ref_name }}expression), likely causing the packaging step to fail. Keep the command on one line, or use arun: |block with proper line continuations so the output path stays part of the same command string.