@@ -467,24 +467,19 @@ jobs:
467
467
path : libmicrovmi/output/*
468
468
469
469
github_release :
470
- # create a Github release
471
- # only when
472
- # - push on master
473
- # - tag starts with 'v*'
474
470
needs : [c_api, examples, release_python, release_debian_package, release_windows]
475
471
runs-on : ubuntu-22.04
476
- # output these value to be used by other jobs so they can add assets
477
472
outputs :
478
473
upload_url : ${{ steps.step_upload_url.outputs.upload_url }}
479
474
version : ${{ steps.get_version.outputs.version }}
480
475
481
476
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
482
477
steps :
483
- - uses : actions/checkout@v1
478
+ - uses : actions/checkout@v3
484
479
485
480
- name : Get the version
486
481
id : get_version
487
- run : echo ::set-output name=VERSION:: ${GITHUB_REF/ refs\ /tags\//}
482
+ run : echo "version= ${GITHUB_REF# refs/tags/}" >> $GITHUB_OUTPUT
488
483
489
484
- uses : actions/cache@v2
490
485
with :
@@ -504,32 +499,27 @@ jobs:
504
499
release_name : ${{ steps.get_version.outputs.version }}
505
500
506
501
- id : step_upload_url
507
- run : echo "::set-output name= upload_url:: ${{ steps.create_release.outputs.upload_url }}"
502
+ run : echo "upload_url= ${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT
508
503
509
504
publish_debian_package :
510
- # publish the debian package in the Github Release
511
505
needs : github_release
512
506
runs-on : ubuntu-22.04
513
507
514
508
steps :
515
- # the deploy action below depends on a checkout of the repo
516
- # otherwise it fails trying to remote the 'origin' remote
517
- # https://github.com/JamesIves/github-pages-deploy-action/issues/335
518
- - uses : actions/checkout@v2
509
+ - uses : actions/checkout@v3
519
510
520
- # download artifacts
521
511
- uses : actions/download-artifact@v2
522
512
id : download
523
513
with :
524
514
name : microvmi_deb
525
515
526
- - name : get artifact path and name
516
+ - name : Get artifact path and name
527
517
id : artefact
528
518
run : |
529
519
PATHNAME=$(find . -maxdepth 1 -name '*.deb')
530
- NAME=$(basename $PATHNAME)
531
- echo ::set-output name= path::${ PATHNAME}
532
- echo ::set-output name=name::${ NAME}
520
+ NAME=$(basename " $PATHNAME" )
521
+ echo " path=$ PATHNAME" >> $GITHUB_OUTPUT
522
+ echo " name=$ NAME" >> $GITHUB_OUTPUT
533
523
534
524
- name : Upload Debian package as Release asset
535
525
@@ -541,6 +531,7 @@ jobs:
541
531
asset_name : ${{ steps.artefact.outputs.name }}
542
532
asset_content_type : application/vnd.debian.binary-package
543
533
534
+
544
535
publish_windows :
545
536
# publish the windows release on Github Release
546
537
runs-on : ubuntu-22.04
0 commit comments