-
Notifications
You must be signed in to change notification settings - Fork 22
Update 202407.00 release information #49
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
Open
chinglee-iot
wants to merge
9
commits into
FreeRTOS:main
Choose a base branch
from
chinglee-iot:202407.00-release
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
08805eb
Update changelog for v202407.00 release
chinglee-iot 4877105
Add release yml file
chinglee-iot b81f37b
Update manifest file for v202407.00
chinglee-iot 1f4dc20
Update coreMQTT version to v2.3.1
chinglee-iot 165f56d
Merge branch 'update-LTS-202406.01' into 202407.00-release
chinglee-iot 96fbcce
Fix release.yml file for repository name
chinglee-iot 3de0b6e
Update CHANGELOG for release information
chinglee-iot 3837f16
Update changelog information
chinglee-iot a4aa0a1
Adding OTA handler for incomming packets
chinglee-iot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: Release automation | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commit_id: | ||
description: 'Commit ID/branch to tag and create a release for' | ||
required: true | ||
version_number: | ||
description: 'Release Version (Eg, 202012.00-LTS)' | ||
required: true | ||
|
||
env: | ||
repository_name: iot-reference-nxp-rt1060 | ||
repository_compressed_name: ${{ env.repository_name }}v${{ github.event.inputs.version_number }} | ||
repostiory_zip_name: ${{ env.repository_compressed_name }}.zip | ||
|
||
jobs: | ||
tag-commit: | ||
name: Tag commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commit_id }} | ||
- name: Configure git identity | ||
run: | | ||
git config --global user.name ${{ github.actor }} | ||
git config --global user.email ${{ github.actor }}@users.noreply.github.com | ||
- name: create a new branch that references commit id | ||
run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }} | ||
- name: Tag Commit and Push to remote | ||
run: | | ||
git tag ${{ github.event.inputs.version_number }} -a -m "Release ${{ github.event.inputs.version_number }}" | ||
git push origin --tags | ||
- name: Verify tag on remote | ||
run: | | ||
git tag -d ${{ github.event.inputs.version_number }} | ||
git remote update | ||
git checkout tags/${{ github.event.inputs.version_number }} | ||
git diff ${{ github.event.inputs.commit_id }} tags/${{ github.event.inputs.version_number }} | ||
create-zip: | ||
needs: tag-commit | ||
name: Create ZIP and verify package for release asset. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install ZIP tools | ||
run: sudo apt-get install zip unzip | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.commit_id }} | ||
path: ${{ env.repository_name }} | ||
submodules: recursive | ||
- name: Checkout disabled submodules | ||
run: | | ||
cd ${{ env.repository_name }} | ||
git submodule update --init --checkout --recursive | ||
- name: Create ZIP | ||
run: | | ||
zip -r ${{ env.repostiory_zip_name }} ${{ env.repository_name }} -x "*.git*" | ||
ls ./ | ||
- name: Validate created ZIP | ||
run: | | ||
mkdir zip-check | ||
mv ${{ env.repostiory_zip_name }} zip-check | ||
cd zip-check | ||
unzip ${{ env.repostiory_zip_name }} -d ${{ repository_compressed_name }} | ||
ls ${{ repository_compressed_name }} | ||
diff -r -x "*.git*" ${{ env.repository_compressed_name }}/${{ env.repository_name }}/ ../${{ env.repository_name }}/ | ||
- name: Create artifact of ZIP | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.repostiory_zip_name }} | ||
path: zip-check/${{ env.repostiory_zip_name }} | ||
create-release: | ||
needs: create-zip | ||
name: Create Release and Upload Release Asset | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.version_number }} | ||
release_name: ${{ github.event.inputs.version_number }} | ||
body: ${{ github.event.inputs.version_number }} Release | ||
draft: false | ||
prerelease: false | ||
- name: Download ZIP artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ${{ env.repostiory_zip_name }} | ||
- 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: ./${{ env.repostiory_zip_name }} | ||
asset_name: ${{ env.repostiory_zip_name }} | ||
asset_content_type: application/zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.