mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-12-23 09:47:07 +00:00
39 lines
867 B
YAML
39 lines
867 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
|
|
- name: Build project
|
|
run: cargo build --release
|
|
|
|
# - name: Archive the build artifacts
|
|
# run: tar -czvf build.tar.gz -C target/release .
|
|
#
|
|
# - name: Create Release
|
|
# id: create_release
|
|
# uses: softprops/action-gh-release@v1
|
|
# with:
|
|
# tag_name: ${{ github.ref }}
|
|
# files: build.tar.gz
|
|
# env:
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Publish to crates.io
|
|
env:
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
run: cargo publish --token $CARGO_REGISTRY_TOKEN
|