Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the release zip name to be consistent with the prior release. #4

Merged
merged 1 commit into from
Feb 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update the release zip name to be consistent with the prior release.
  • Loading branch information
leegeth committed Feb 26, 2021
commit 4b7c202df51c2c21cdccbc39dcaafa5fb30bd21d
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ jobs:
git submodule update --init --checkout --recursive
- name: Create ZIP
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 ./
- name: Validate created ZIP
run: |
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
unzip FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip -d FreeRTOS-LTS-${{ github.event.inputs.version_number }}
ls FreeRTOS-LTS-${{ github.event.inputs.version_number }}
diff -r -x "*.git*" FreeRTOS-LTS-${{ github.event.inputs.version_number }}/FreeRTOS-LTS/ ../FreeRTOS-LTS/
unzip FreeRTOSv${{ github.event.inputs.version_number }}.zip -d FreeRTOSv${{ github.event.inputs.version_number }}
ls FreeRTOSv${{ github.event.inputs.version_number }}
diff -r -x "*.git*" FreeRTOSv${{ github.event.inputs.version_number }}/FreeRTOS-LTS/ ../FreeRTOS-LTS/
- name: Create artifact of ZIP
uses: actions/upload-artifact@v2
with:
name: FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
path: zip-check/FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
path: zip-check/FreeRTOSv${{ github.event.inputs.version_number }}.zip
create-release:
needs: create-zip
name: Create Release and Upload Release Asset
Expand All @@ -85,14 +85,14 @@ jobs:
- name: Download ZIP artifact
uses: actions/download-artifact@v2
with:
name: FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
asset_name: FreeRTOS-LTS-${{ github.event.inputs.version_number }}.zip
asset_path: ./FreeRTOSv${{ github.event.inputs.version_number }}.zip
asset_name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
asset_content_type: application/zip