未验证 提交 d7203092 编写于 作者: R Ry Dahl 提交者: GitHub

Auto cargo-publish on tags (#3704)

fix tools/cargo_publish.py
上级 35eb7961
......@@ -186,5 +186,14 @@ jobs:
target/release/deno_src.tar.gz
draft: true
- name: Publish
if: >
startsWith(github.ref, 'refs/tags/') &&
github.repository == 'denoland/deno' &&
runner.os == 'Linux'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: ./tools/cargo_publish.py
- name: Stop sccache
run: sccache --stop-server
#!/usr/bin/env python
# Publishes 'deno_cli', 'deno_cli_snapshots', and 'deno_typescript' crates.
# DOES NOT PUBLISH 'deno' crate see tools/cargo_package.py for that.
import os
import sys
import argparse
......@@ -17,11 +14,12 @@ def main():
if args.dry_run:
cargo_publish += ["--dry-run"]
# Publish the deno_typescript crate.
os.chdir(os.path.join(root_path, "core"))
run(cargo_publish)
os.chdir(os.path.join(root_path, "deno_typescript"))
run(cargo_publish)
# Publish the deno_cli crate.
os.chdir(os.path.join(root_path, "cli"))
run(cargo_publish)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册