Update the release zip name to be consistent with the prior release. (#4)
This commit is contained in:
parent
09ad9ee5d7
commit
c3941e76bb
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -51,21 +51,21 @@ jobs:
|
|||||||
git submodule update --init --checkout --recursive
|
git submodule update --init --checkout --recursive
|
||||||
- name: Create ZIP
|
- name: Create ZIP
|
||||||
run: |
|
run: |
|
||||||
zip -r FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip FreeRTOS-LTS -x "*.git*"
|
zip -r FreeRTOSv${{ github.event.inputs.version_number }}.zip FreeRTOS-LTS -x "*.git*"
|
||||||
ls ./
|
ls ./
|
||||||
- name: Validate created ZIP
|
- name: Validate created ZIP
|
||||||
run: |
|
run: |
|
||||||
mkdir zip-check
|
mkdir zip-check
|
||||||
mv FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip zip-check
|
mv FreeRTOSv${{ github.event.inputs.version_number }}.zip zip-check
|
||||||
cd zip-check
|
cd zip-check
|
||||||
unzip FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip -d FreeRTOS-LTS-${{ github.event.inputs.version_number }}
|
unzip FreeRTOSv${{ github.event.inputs.version_number }}.zip -d FreeRTOSv${{ github.event.inputs.version_number }}
|
||||||
ls FreeRTOS-LTS-${{ github.event.inputs.version_number }}
|
ls FreeRTOSv${{ github.event.inputs.version_number }}
|
||||||
diff -r -x "*.git*" FreeRTOS-LTS-${{ github.event.inputs.version_number }}/FreeRTOS-LTS/ ../FreeRTOS-LTS/
|
diff -r -x "*.git*" FreeRTOSv${{ github.event.inputs.version_number }}/FreeRTOS-LTS/ ../FreeRTOS-LTS/
|
||||||
- name: Create artifact of ZIP
|
- name: Create artifact of ZIP
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
|
name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
|
||||||
path: zip-check/FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
|
path: zip-check/FreeRTOSv${{ github.event.inputs.version_number }}.zip
|
||||||
create-release:
|
create-release:
|
||||||
needs: create-zip
|
needs: create-zip
|
||||||
name: Create Release and Upload Release Asset
|
name: Create Release and Upload Release Asset
|
||||||
@ -85,7 +85,7 @@ jobs:
|
|||||||
- name: Download ZIP artifact
|
- name: Download ZIP artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
|
name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
@ -93,6 +93,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
|
asset_path: ./FreeRTOSv${{ github.event.inputs.version_number }}.zip
|
||||||
asset_name: FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
|
asset_name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
Loading…
Reference in New Issue
Block a user