mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
Don't publish cli when tag name starts with 'std/' (#5159)
This commit is contained in:
parent
c42ad381ad
commit
f479b19649
1 changed files with 32 additions and 11 deletions
43
.github/workflows/ci.yml
vendored
43
.github/workflows/ci.yml
vendored
|
@ -50,7 +50,12 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Create source tarballs (release, linux)
|
- name: Create source tarballs (release, linux)
|
||||||
if: startsWith(matrix.config.os, 'ubuntu') && matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/deno'
|
if: |
|
||||||
|
startsWith(matrix.config.os, 'ubuntu') &&
|
||||||
|
matrix.config.kind == 'test_release' &&
|
||||||
|
github.repository == 'denoland/deno' &&
|
||||||
|
startsWith(github.ref, 'refs/tags/') &&
|
||||||
|
!startsWith(github.ref, 'refs/tags/std/')
|
||||||
run: |
|
run: |
|
||||||
mkdir -p target/release
|
mkdir -p target/release
|
||||||
tar --exclude=.cargo_home --exclude=".git*" --exclude=target --exclude=deno_typescript/typescript/tests --exclude=third_party/cpplint --exclude=third_party/node_modules --exclude=third_party/python_packages --exclude=third_party/prebuilt -czvf target/release/deno_src.tar.gz -C .. deno
|
tar --exclude=.cargo_home --exclude=".git*" --exclude=target --exclude=deno_typescript/typescript/tests --exclude=third_party/cpplint --exclude=third_party/node_modules --exclude=third_party/python_packages --exclude=third_party/prebuilt -czvf target/release/deno_src.tar.gz -C .. deno
|
||||||
|
@ -121,7 +126,9 @@ jobs:
|
||||||
run: python ./tools/test_format.py
|
run: python ./tools/test_format.py
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
if: matrix.config.kind == 'test_release' || matrix.config.kind == 'bench'
|
if: |
|
||||||
|
matrix.config.kind == 'test_release' ||
|
||||||
|
matrix.config.kind == 'bench'
|
||||||
run: cargo build --release --locked --all-targets
|
run: cargo build --release --locked --all-targets
|
||||||
|
|
||||||
- name: Build debug
|
- name: Build debug
|
||||||
|
@ -141,7 +148,10 @@ jobs:
|
||||||
run: python ./tools/benchmark.py --release
|
run: python ./tools/benchmark.py --release
|
||||||
|
|
||||||
- name: Post Benchmarks
|
- name: Post Benchmarks
|
||||||
if: matrix.config.kind == 'bench' && github.ref == 'refs/heads/master' && github.repository == 'denoland/deno'
|
if: |
|
||||||
|
matrix.config.kind == 'bench' &&
|
||||||
|
github.repository == 'denoland/deno' &&
|
||||||
|
github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -161,26 +171,36 @@ jobs:
|
||||||
cat /proc/meminfo
|
cat /proc/meminfo
|
||||||
|
|
||||||
- name: Pre-release (linux)
|
- name: Pre-release (linux)
|
||||||
if: startsWith(matrix.config.os, 'ubuntu') && matrix.config.kind == 'test_release'
|
if: |
|
||||||
|
startsWith(matrix.config.os, 'ubuntu') &&
|
||||||
|
matrix.config.kind == 'test_release'
|
||||||
run: |
|
run: |
|
||||||
cd target/release
|
cd target/release
|
||||||
zip -r deno-x86_64-unknown-linux-gnu.zip deno
|
zip -r deno-x86_64-unknown-linux-gnu.zip deno
|
||||||
./deno types > lib.deno.d.ts
|
./deno types > lib.deno.d.ts
|
||||||
|
|
||||||
- name: Pre-release (mac)
|
- name: Pre-release (mac)
|
||||||
if: startsWith(matrix.config.os, 'macOS') && matrix.config.kind == 'test_release'
|
if: |
|
||||||
|
startsWith(matrix.config.os, 'macOS') &&
|
||||||
|
matrix.config.kind == 'test_release'
|
||||||
run: |
|
run: |
|
||||||
cd target/release
|
cd target/release
|
||||||
zip -r deno-x86_64-apple-darwin.zip deno
|
zip -r deno-x86_64-apple-darwin.zip deno
|
||||||
|
|
||||||
- name: Pre-release (windows)
|
- name: Pre-release (windows)
|
||||||
if: startsWith(matrix.config.os, 'windows') && matrix.config.kind == 'test_release'
|
if: |
|
||||||
|
startsWith(matrix.config.os, 'windows') &&
|
||||||
|
matrix.config.kind == 'test_release'
|
||||||
run: |
|
run: |
|
||||||
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip
|
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/deno'
|
if: |
|
||||||
|
matrix.config.kind == 'test_release' &&
|
||||||
|
github.repository == 'denoland/deno' &&
|
||||||
|
startsWith(github.ref, 'refs/tags/') &&
|
||||||
|
!startsWith(github.ref, 'refs/tags/std/')
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
@ -193,11 +213,12 @@ jobs:
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
if: >
|
if: |
|
||||||
startsWith(github.ref, 'refs/tags/') &&
|
startsWith(matrix.config.os, 'ubuntu') &&
|
||||||
github.repository == 'denoland/deno' &&
|
|
||||||
matrix.config.kind == 'test_release' &&
|
matrix.config.kind == 'test_release' &&
|
||||||
startsWith(matrix.config.os, 'ubuntu')
|
github.repository == 'denoland/deno' &&
|
||||||
|
startsWith(github.ref, 'refs/tags/') &&
|
||||||
|
!startsWith(github.ref, 'refs/tags/std/')
|
||||||
env:
|
env:
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue