瀏覽代碼

Merge pull request #125 from Luni-4/publish

Add an action to publish the grammar automatically
pull/127/head
Yoann Padioleau 3 年之前
committed by GitHub
父節點
當前提交
f35789006c
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 33 行新增0 行删除
  1. +33
    -0
      .github/workflows/publish_crate.yml

+ 33
- 0
.github/workflows/publish_crate.yml 查看文件

@ -0,0 +1,33 @@
name: Publish on crates.io
on:
push:
tags:
- v*
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust stable
run: |
rustup toolchain install stable --profile minimal --no-self-update
- name: Verify publish crate
uses: katyo/publish-crates@v1
with:
dry-run: true
- name: Publish crate
uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Loading…
取消
儲存