mirror of
https://github.com/meshtastic/python.git
synced 2026-01-19 21:28:07 -05:00
Update release.yml
This commit is contained in:
43
.github/workflows/release.yml
vendored
43
.github/workflows/release.yml
vendored
@@ -10,8 +10,6 @@ on:
|
||||
jobs:
|
||||
release_create:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
upload_url: ${{ create_release.upload_url }}
|
||||
steps:
|
||||
|
||||
- name: Create GitHub release
|
||||
@@ -26,6 +24,15 @@ jobs:
|
||||
Autogenerated by github action, developer should edit as required before publishing...
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: set upload_url
|
||||
id: set_upload_url
|
||||
uses: noobly314/share-data@v1
|
||||
with:
|
||||
share-id: release_url
|
||||
mode: set
|
||||
key: url
|
||||
value: ${{ steps.create_release.outputs.upload_url }}
|
||||
|
||||
publish_to_pypi:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -65,7 +72,15 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
needs: release_create
|
||||
steps:
|
||||
|
||||
|
||||
- name: get upload_url
|
||||
id: get_upload_url
|
||||
uses: noobly314/share-data@v1
|
||||
with:
|
||||
share-id: release_url
|
||||
mode: get
|
||||
key: url
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@@ -101,7 +116,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ release_create.upload_url }}
|
||||
upload_url: ${{ steps.get_upload_url.outputs.data }}
|
||||
asset_path: dist/meshtastic_mac
|
||||
asset_name: meshtastic_mac
|
||||
asset_content_type: application/zip
|
||||
@@ -111,6 +126,14 @@ jobs:
|
||||
needs: release_create
|
||||
steps:
|
||||
|
||||
- name: get upload_url
|
||||
id: get_upload_url
|
||||
uses: noobly314/share-data@v1
|
||||
with:
|
||||
share-id: release_url
|
||||
mode: get
|
||||
key: url
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@@ -131,7 +154,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ release_create.upload_url }}
|
||||
upload_url: ${{ steps.get_upload_url.outputs.data }}
|
||||
asset_path: dist/meshtastic_ubuntu
|
||||
asset_name: meshtastic_ubuntu
|
||||
asset_content_type: application/zip
|
||||
@@ -141,6 +164,14 @@ jobs:
|
||||
needs: release_create
|
||||
steps:
|
||||
|
||||
- name: get upload_url
|
||||
id: get_upload_url
|
||||
uses: noobly314/share-data@v1
|
||||
with:
|
||||
share-id: release_url
|
||||
mode: get
|
||||
key: url
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@@ -161,7 +192,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ release_create.upload_url }}
|
||||
upload_url: ${{ steps.get_upload_url.outputs.data }}
|
||||
asset_path: dist/meshtastic_windows
|
||||
asset_name: meshtastic_windows
|
||||
asset_content_type: application/zip
|
||||
|
||||
Reference in New Issue
Block a user