mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-02-06 02:23:29 +08:00
Some checks failed
FreeRTOS Demos / WIN32 MSVC (push) Has been cancelled
FreeRTOS Demos / WIN32 MingW (push) Has been cancelled
FreeRTOS Demos / Posix GCC (push) Has been cancelled
FreeRTOS Demos / GNU MSP430 Toolchain (push) Has been cancelled
FreeRTOS Demos / GNU ARM Toolchain (push) Has been cancelled
FreeRTOS MPU Demo / TI-Hercules RM46 and RM57 MPU Demos (push) Has been cancelled
Build FreeRTOS+ Demos / Windows Simulator Cellular Demos (push) Has been cancelled
Build FreeRTOS+ Demos / coreHTTP WinSim Demos (push) Has been cancelled
Build FreeRTOS+ Demos / corePKCS11 WinSim Demos (push) Has been cancelled
Build FreeRTOS+ Demos / core Library Windows Simulator Demos (push) Has been cancelled
Build FreeRTOS+ Demos / AWS IoT Windows Simulator Demos (push) Has been cancelled
Build FreeRTOS+ Demos / FreeRTOS+TCP Posix Simulator Demo (push) Has been cancelled
Build FreeRTOS+ Demos / FreeRTOS+TCP QEMU ARM MPS2 AN385 (push) Has been cancelled
Build FreeRTOS+ Demos / FreeRTOS+TCP Windows Simulator Demos (push) Has been cancelled
Build FreeRTOS+ Demos / FreeRTOS+CLI Windows Simulator Demos (push) Has been cancelled
Kernel Unit Tests / FreeRTOS/Source Submodule Revision (push) Has been cancelled
Kernel Unit Tests / FreeRTOS-Kernel Main Branch (push) Has been cancelled
CI Checks / git-secrets (push) Has been cancelled
CI Checks / formatting (push) Has been cancelled
CI Checks / spell-check (push) Has been cancelled
CI Checks / doxygen (push) Has been cancelled
CI Checks / verify-manifest (push) Has been cancelled
CI Checks / memory-statistics (push) Has been cancelled
CI Checks / proof_ci (push) Has been cancelled
66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
name: Auto-Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
commit_id:
|
|
description: 'Commit ID'
|
|
required: true
|
|
default: 'HEAD'
|
|
version_number:
|
|
description: 'Version Number (Ex. 202000.00)'
|
|
required: true
|
|
|
|
jobs:
|
|
auto-release:
|
|
permissions:
|
|
id-token: write
|
|
name: Auto Release
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Tool Setup
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.7.10
|
|
architecture: x64
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# Source the release tools from FreeRTOS/FreeRTOS
|
|
- name: Checkout FreeRTOS Release Tools
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: tools
|
|
|
|
# Simpler git auth if we use checkout action and forward the repo to release script
|
|
- name: Checkout FreeRTOS
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: local_core
|
|
fetch-depth: 0
|
|
|
|
- name: Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
ACTOR: ${{ github.actor }}
|
|
COMMIT_ID: ${{ github.event.inputs.commit_id }}
|
|
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
|
|
GITHUB_ORG: ${{ github.repository_owner }}
|
|
run: |
|
|
# Configure repo for push
|
|
git config --global user.name "$ACTOR"
|
|
git config --global user.email "$ACTOR"@users.noreply.github.com
|
|
|
|
# Run the release script
|
|
pip install -r ./tools/.github/scripts/release-requirements.txt
|
|
./tools/.github/scripts/release.py "$GITHUB_ORG" --core-repo-path=local_core --core-commit="$COMMIT_ID" --new-core-version="$VERSION_NUMBER"
|
|
exit $?
|
|
|
|
- name: Backup Release Asset
|
|
uses: FreeRTOS/CI-CD-Github-Actions/artifact-backup@main
|
|
with:
|
|
# This is dependent on the release script putting this zip file
|
|
# in this exact location.
|
|
artifact_path: ./FreeRTOSv${{ github.event.inputs.version_number }}.zip
|
|
release_tag: ${{ github.event.inputs.version_number }}
|