Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Publish

on:
push:
tags: ["*"]

env:
CARGO_TERM_COLOR: always

jobs:
crates:
name: Publish Rust package
runs-on: ubuntu-latest
container:
image: rust:latest
environment:
name: crates
url: https://crates.io/crates/phpantom_lsp
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install toml-cli
run: cargo install toml-cli
- name: Check version
run: test "$(toml get -r Cargo.toml package.version)" = "${{ github.ref_name }}"
- name: Publish to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading