diff options
author | David Chalco <59750547+dachalco@users.noreply.github.com> | 2020-10-16 10:19:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 10:19:02 -0700 |
commit | d47a28aff7c869f3659fb90a8ccf0cbe3c5e4ac0 (patch) | |
tree | c702674df2ea5c0453c64806ede1b8bfa9bbdab7 /.github/workflows | |
parent | 792fde769acff4b3ef67b60f6264162bb98602c6 (diff) | |
download | freertos-git-d47a28aff7c869f3659fb90a8ccf0cbe3c5e4ac0.tar.gz |
GitAction - Release Packager (#342)
* Rev0 - Release packaging action
* freertos_zipper += commit id param
+force checkout+clean required for older commits
* require commit id
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release-packager.yml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.github/workflows/release-packager.yml b/.github/workflows/release-packager.yml new file mode 100644 index 000000000..2cc7451a6 --- /dev/null +++ b/.github/workflows/release-packager.yml @@ -0,0 +1,62 @@ +name: FreeRTOS-Release-Packager + +on: + workflow_dispatch: + inputs: + commit_id: + description: 'Commit ID' + required: true + version_number: + description: 'Version Number (Ex. 10.4.1)' + required: true + default: '10.4.1' + +jobs: + release-packager: + name: Release Packager + runs-on: ubuntu-latest + steps: + # Need a separate copy to fetch packing tools, as source FreeRTOS dir will be pruned and operated on + - name: Checkout FreeRTOS Tools + uses: actions/checkout@v2 + with: + ref: master + path: tools + + # Setup packing tools + - name: Tool Setup + uses: actions/setup-python@v2 + with: + python-version: 3.8.5 + architecture: x64 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Packaging + - name: Packaging + run: python tools/.github/scripts/freertos_zipper.py --freertos-commit ${{ github.event.inputs.commit_id }} --zip-version ${{ github.event.inputs.version_number }} + + # Create release endpoint + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: V${{ github.event.inputs.version_number }} + release_name: FreeRTOS Release V${{ github.event.inputs.version_number }} + draft: false + prerelease: false + commitish: ${{ github.event.inputs.commit_id }} + + # Upload release assets the recently created endpoint + - name: Upload Release + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./FreeRTOSv${{ github.event.inputs.version_number }}.zip + asset_name: FreeRTOSv${{ github.event.inputs.version_number }}.zip + asset_content_type: application/zip + |