Release #14
This file contains 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
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version number, e.g., v1.2.3' | |
required: true | |
jobs: | |
merge-and-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Ensure all branches and tags are fetched | |
- name: Configure Git | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Merge Alpha into Meta | |
run: | | |
git merge origin/Alpha | |
- name: Create tag | |
run: | | |
VERSION=${{ github.event.inputs.version }} | |
git tag $VERSION | |
git push origin $VERSION | |
- name: Push changes | |
run: | | |
git push origin Meta |