Skip to content

WIP on main

WIP on main #23

Workflow file for this run

name: Package and Release
on:
push:
tags:
- '**'
branches:
- alpha
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone Project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git user
run: |
git config --global user.name "donniedice"
git config --global user.email "[email protected]"
- name: Set Release Type
id: set_release_type
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
TAG_NAME=${{ github.ref }}
if [[ "$TAG_NAME" == *"beta"* ]]; then
echo "::set-output name=release_type::beta"
elif [[ "$TAG_NAME" == *"alpha"* ]]; then
echo "::set-output name=release_type::alpha"
else
echo "::set-output name=release_type::release"
fi
else
echo "::set-output name=release_type::alpha"
fi
- name: Extract Version from TOC
id: extract_version
run: |
version=$(grep -oP '^## Version: \K(.*)' ./*.toc)
echo "::set-output name=version::$version"
- name: Package and Release
uses: BigWigsMods/packager@master
with:
release-type: ${{ steps.set_release_type.outputs.release_type }}
- name: Parse Changelog
if: ${{ steps.set_release_type.outputs.release_type != 'alpha' }}
run: |
# Your existing changelog parsing logic