@@ -398,7 +398,7 @@ jobs:
398
398
github.git.createRef({
399
399
owner: "${{ github.repository_owner }}",
400
400
repo: "json-logic-rs",
401
- ref: "refs/tags/v${{ steps.get-version.ouputs .version }}",
401
+ ref: "refs/tags/v${{ steps.get-version.outputs .version }}",
402
402
sha: "${{ github.sha }}",
403
403
})
404
404
@@ -411,7 +411,7 @@ jobs:
411
411
github.git.createTag({
412
412
owner: "${{ github.repository_owner }}",
413
413
repo: "json-logic-rs",
414
- tag: "v${{ steps.get-version.ouputs .version }}",
414
+ tag: "v${{ steps.get-version.outputs .version }}",
415
415
message: "Vesrion ${{ steps.get-version.outputs.version }}",
416
416
object: "${{ github.sha }}",
417
417
type: "commit",
@@ -438,6 +438,16 @@ jobs:
438
438
echo "Cargo: ${{ steps.cargo-version.outputs.new }}"
439
439
echo "NPM: ${{ steps.npm-version.outputs.new }}"
440
440
441
+ - name : " Persist new cargo state for subsequent jobs"
442
+ shell : bash
443
+ run : |
444
+ echo "${{ steps.cargo-version.outputs.new }}" > tmp-new-cargo-ver
445
+
446
+ - uses : " actions/upload-artifact@v2"
447
+ with :
448
+ path : " tmp-new-cargo-ver"
449
+ name : " new-cargo"
450
+
441
451
- name : " Cargo Publish"
442
452
if : " ${{ steps.cargo-version.outputs.new == 'true' }}"
443
453
run : |
@@ -462,6 +472,7 @@ jobs:
462
472
NPM_TOKEN : " ${{ secrets.NPM_TOKEN }}"
463
473
464
474
- name : " Pull Python Sdist Artifact"
475
+ if : " ${{ steps.cargo-version.outputs.new == 'true' }}"
465
476
uses : " actions/download-artifact@v1"
466
477
with :
467
478
name : py-sdist
@@ -496,30 +507,28 @@ jobs:
496
507
with :
497
508
python-version : 3.8
498
509
499
- # Generate the lockfile
500
- - name : " Generate Cargo Lockfile"
501
- run : " cargo generate-lockfile"
510
+ - name : " Pull cargo version tracking file"
511
+ uses : " actions/download-artifact@v1"
512
+ with :
513
+ name : " new-cargo"
514
+ path : tmp-new-cargo-ver
502
515
503
- - name : " Check if new Cargo version"
516
+ - name : " Check for new cargo version"
504
517
id : cargo-version
505
518
shell : bash
506
519
run : |
507
- echo "::set-output name=new::$(./scripts/newCargoVersion.sh)"
508
-
509
- - name : " (DEBUG) is new cargo version"
510
- shell : bash
511
- run : |
512
- echo "${{ steps.cargo-version.outputs.new }}"
520
+ echo "::set-output name=new::$(cat tmp-new-cargo-ver)"
513
521
514
522
- name : " Pull Python Wheels"
523
+ if : " ${{ steps.cargo-version.outputs.new == 'true' }}"
515
524
uses : " actions/download-artifact@v1"
516
525
with :
517
526
name : " py-${{ matrix.python-version }}-${{ runner.os }}-wheels"
518
527
path : dist-py
519
528
520
529
- name : " Publish Wheels"
521
- shell : bash
522
530
if : " ${{ steps.cargo-version.outputs.new == 'true' }}"
531
+ shell : bash
523
532
run : |
524
533
pip install twine
525
534
twine upload --skip-existing dist-py/*
@@ -551,22 +560,20 @@ jobs:
551
560
with :
552
561
python-version : 3.8
553
562
554
- # Generate the lockfile
555
- - name : " Generate Cargo Lockfile"
556
- run : " cargo generate-lockfile"
563
+ - name : " Pull cargo version tracking file"
564
+ uses : " actions/download-artifact@v1"
565
+ with :
566
+ name : " new-cargo"
567
+ path : tmp-new-cargo-ver
557
568
558
- - name : " Check if new Cargo version"
569
+ - name : " Check for new cargo version"
559
570
id : cargo-version
560
571
shell : bash
561
572
run : |
562
- echo "::set-output name=new::$(./scripts/newCargoVersion.sh)"
563
-
564
- - name : " (DEBUG) is new cargo version"
565
- shell : bash
566
- run : |
567
- echo "${{ steps.cargo-version.outputs.new }}"
573
+ echo "::set-output name=new::$(cat tmp-new-cargo-ver)"
568
574
569
575
- name : " Pull Python Wheel"
576
+ if : " ${{ steps.cargo-version.outputs.new == 'true' }}"
570
577
uses : " actions/download-artifact@v1"
571
578
with :
572
579
name : " py-linux-wheels-${{ matrix.manylinux.arch }}"
0 commit comments