mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-24 15:19:31 -05:00
fix publish ci (#1522)
This commit is contained in:
parent
5666d81c7b
commit
2c5db866a2
1 changed files with 2 additions and 8 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -258,6 +258,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }}
|
runs-on: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }}
|
||||||
|
if: github.repository == 'denoland/rusty_v8' && startsWith(github.ref, 'refs/tags/')
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git
|
- name: Configure git
|
||||||
run: git config --global core.symlinks true
|
run: git config --global core.symlinks true
|
||||||
|
@ -285,13 +286,6 @@ jobs:
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
if: github.repository == 'denoland/rusty_v8'
|
|
||||||
env:
|
env:
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
DRY_RUN: ${{ startsWith(github.ref, 'refs/tags/') == false }}
|
run: cargo publish -vv --locked --allow-dirty
|
||||||
run: |
|
|
||||||
args="-vv --locked --allow-dirty"
|
|
||||||
if [ "$DRY_RUN" = "true" ]; then
|
|
||||||
args="$args --dry-run"
|
|
||||||
fi
|
|
||||||
cargo publish $args
|
|
||||||
|
|
Loading…
Reference in a new issue