mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
kernel still breaking. updated name which may have been issue
This commit is contained in:
49
docs/solarpowered-main/.github/workflows/release.yml
vendored
Normal file
49
docs/solarpowered-main/.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
handwritten:
|
||||
description: 'Small changelog about changes in this build:'
|
||||
target:
|
||||
description: 'Release branch (e.g., testing). Defaults to branch name.'
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
name: Generate Release
|
||||
jobs:
|
||||
generate-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout last 500 commits (for <commits> to work)
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
with:
|
||||
fetch-depth: 500
|
||||
|
||||
- name: Get target
|
||||
id: get-target
|
||||
run: |
|
||||
TARGET="${{ github.event.inputs.target || github.ref }}"
|
||||
TARGET="${TARGET##*/}"
|
||||
if [ "$TARGET" = "main" ]; then
|
||||
TARGET="latest"
|
||||
fi
|
||||
echo "target=$TARGET" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate Release Text
|
||||
id: generate-release
|
||||
run: |
|
||||
python3 ./.github/workflows/changelog.py \
|
||||
"${{ steps.get-target.outputs.target }}" \
|
||||
./output.env ./changelog.md --workdir . --handwritten "${{ github.event.inputs.handwritten }}"
|
||||
source ./output.env
|
||||
echo "title=${TITLE}" >> $GITHUB_OUTPUT
|
||||
echo "tag=${TAG}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
|
||||
with:
|
||||
name: ${{ steps.generate-release.outputs.title }}
|
||||
tag_name: ${{ steps.generate-release.outputs.tag }}
|
||||
body_path: ./changelog.md
|
||||
make_latest: ${{ steps.get-target.outputs.target == 'stable' }}
|
||||
prerelease: ${{ steps.get-target.outputs.target != 'stable' }}
|
||||
Reference in New Issue
Block a user