From eb6196cff585c790a97f62da23764b6b7d6a037d Mon Sep 17 00:00:00 2001 From: David Chalco Date: Fri, 18 Dec 2020 00:34:47 -0800 Subject: [PATCH] Combo of various small edits --- .github/workflows/release-packager.yml | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/release-packager.yml diff --git a/.github/workflows/release-packager.yml b/.github/workflows/release-packager.yml new file mode 100644 index 000000000..36cf89792 --- /dev/null +++ b/.github/workflows/release-packager.yml @@ -0,0 +1,53 @@ +name: Kernel-Auto-Release + +on: + workflow_dispatch: + inputs: + commit_id: + description: 'Commit ID' + required: true + default: 'HEAD' + version_number: + description: 'Version Number (Ex. 10.4.0)' + required: true + default: '10.4.0' + +jobs: + release-packager: + name: Release Packager + runs-on: ubuntu-latest + steps: + # Install python 3 + - name: Tool Setup + uses: actions/setup-python@v2 + with: + python-version: 3.8.5 + architecture: x64 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout FreeRTOS Release Tools + uses: actions/checkout@v2 + with: + repository: dachalco/FreeRTOS # TODO: This is only for my debugging. Before merging upstream this should be updated + ref: autorelease/enhancements + path: tools + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout FreeRTOS Kernel + uses: actions/checkout@v2 + with: + path: local_kernel + + - name: Release + run: | + # Configure repo for push + git config --global user.name ${{ github.actor }} + git config --global user.email ${{ github.actor }}@users.noreply.github.com + + # Run the release script + pip install -r ./tools/.github/scripts/release-requirements.txt + ./tools/.github/scripts/release.py dachalco --kernel-repo-path=local_kernel --kernel-commit=${{ github.event.inputs.commit_id }} --new-kernel-version=${{ github.event.inputs.version_number }} + exit $? + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}