Skip to content

Release

Release #7

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
bump-type:
type: choice
required: true
options:
- patch
- minor
- major
permissions:
contents: write
discussions: write
jobs:
bump:
runs-on: macos-14
steps:
# Checkout with custom token for pushin to protected branch
- uses: actions/checkout@v4
with:
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
# Update version in all files and commit
- name: Bump and Git Commit
run: |
git config user.name "swiftyfinch"
git config user.email "swiftyfinch@yandex.com"
BUMP_TYPE=${{ github.event.inputs.bump-type }}
NEW_VERSION=`ruby .github/scripts/bump.rb $BUMP_TYPE`
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "[$BUMP_TYPE] → $NEW_VERSION"
- name: Select Xcode 15.3
run: sudo xcode-select -s '/Applications/Xcode_15.3.app'
- name: Build Release
run: make release
- name: Git Push
run: git push origin
- name: Release Draft
uses: softprops/action-gh-release@v2.0.2
with:
name: 🌳 xtree ${{ env.NEW_VERSION }}
draft: true
generate_release_notes: true
discussion_category_name: Releases
fail_on_unmatched_files: true
files: Release/*.zip
tag_name: ${{ env.NEW_VERSION }}