mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
parent
35eb79610f
commit
d720309203
2 changed files with 12 additions and 5 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -186,5 +186,14 @@ jobs:
|
||||||
target/release/deno_src.tar.gz
|
target/release/deno_src.tar.gz
|
||||||
draft: true
|
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
|
- name: Stop sccache
|
||||||
run: sccache --stop-server
|
run: sccache --stop-server
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/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 os
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
|
@ -17,11 +14,12 @@ def main():
|
||||||
if args.dry_run:
|
if args.dry_run:
|
||||||
cargo_publish += ["--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"))
|
os.chdir(os.path.join(root_path, "deno_typescript"))
|
||||||
run(cargo_publish)
|
run(cargo_publish)
|
||||||
|
|
||||||
# Publish the deno_cli crate.
|
|
||||||
os.chdir(os.path.join(root_path, "cli"))
|
os.chdir(os.path.join(root_path, "cli"))
|
||||||
run(cargo_publish)
|
run(cargo_publish)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue