Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Luacheck
name: Lint

on:
pull_request:
push:
branches: [master]
pull_request_target:
branches:
- master

jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run luacheck
uses: lunarmodules/luacheck@v1.2.0
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: nebularg/actions-luacheck@v1
with:
args: --no-color
50 changes: 50 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release PR

on:
push:
branches:
- master
paths-ignore:
- CHANGELOG.md

permissions:
contents: write
pull-requests: write

jobs:
release-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Generate changelog
id: git-cliff
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --bump --verbose
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}

- name: Normalize version
id: version
if: steps.git-cliff.outputs.version
run: |
VERSION="${{ steps.git-cliff.outputs.version }}"
VERSION="${VERSION#v}"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

- name: Create/update release PR
if: steps.version.outputs.version
uses: peter-evans/create-pull-request@v7
with:
branch: release/next
title: "chore: release ${{ steps.version.outputs.version }}"
labels: autorelease
commit-message: "chore: release ${{ steps.version.outputs.version }}"
body: "Automated release PR for version ${{ steps.version.outputs.version }}"
delete-branch: true
133 changes: 118 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,148 @@ name: Release

on:
push:
tags:
- "*"
pull_request:
types: [closed]
branches:
- master
workflow_dispatch:
inputs:
tag_name:
description: 'Tag to package (e.g. 1.1.2)'
description: "Tag to package (e.g. 1.1.2)"
required: true
type: string

permissions:
contents: write
pull-requests: write
pull-requests: read

jobs:
release-please:
if: ${{ github.event_name != 'workflow_dispatch' }}
create-tag:
name: Create tag from release PR
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'autorelease')
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
tag: ${{ steps.tag.outputs.tag }}
steps:
- uses: googleapis/release-please-action@v4
id: release
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Extract version and create tag
id: tag
shell: bash
run: |
TITLE="${{ github.event.pull_request.title }}"
TAG=$(echo "$TITLE" | grep -oP '\d+\.\d+\.\d+')
if [ -z "$TAG" ]; then
echo "::error::Could not extract version from PR title: $TITLE"
exit 1
fi
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG"

changelog:
name: Generate changelog
needs: [create-tag]
if: >-
always() &&
github.event_name != 'pull_request' &&
(github.ref_type == 'tag' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.vars.outputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Resolve tag
id: vars
shell: bash
run: |
TAG=""
if [ "${{ github.ref_type }}" = "tag" ]; then
TAG="${{ github.ref_name }}"
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG="${{ github.event.inputs.tag_name }}"
fi
echo "tag=$TAG" >> "$GITHUB_OUTPUT"

- name: Generate changelog
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}

- name: Commit changelog to default branch
shell: bash
run: |
BRANCH="${{ github.event.repository.default_branch }}"
git switch "$BRANCH"
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

git add CHANGELOG.md
if git diff --cached --quiet; then
exit 0
fi

git commit -m "Update changelog"
git push origin "HEAD:$BRANCH"

package:
needs: release-please
if: ${{ always() && (needs.release-please.outputs.release_created == 'true' || github.event_name == 'workflow_dispatch') }}
name: Package
needs: [create-tag, changelog]
if: >-
always() && (
needs.create-tag.result == 'success' ||
github.ref_type == 'tag' ||
github.event_name == 'workflow_dispatch'
)
runs-on: ubuntu-latest
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 }}
steps:
- name: Clone project
uses: actions/checkout@v4
- name: Resolve tag
id: resolve
shell: bash
run: |
TAG=""
if [ -n "${{ needs.create-tag.outputs.tag }}" ]; then
TAG="${{ needs.create-tag.outputs.tag }}"
elif [ "${{ github.ref_type }}" = "tag" ]; then
TAG="${{ github.ref_name }}"
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG="${{ github.event.inputs.tag_name }}"
fi
if [ -z "$TAG" ]; then
echo "::error::No tag could be resolved"
exit 1
fi
echo "TAG_NAME=$TAG" >> "$GITHUB_ENV"

- name: Checkout tag
uses: actions/checkout@v5
with:
ref: ${{ needs.release-please.outputs.tag_name || github.event.inputs.tag_name }}
ref: refs/tags/${{ env.TAG_NAME }}
fetch-depth: 0

- name: Package and release
- name: Package and upload
uses: BigWigsMods/packager@v2
env:
GITHUB_REF: refs/tags/${{ env.TAG_NAME }}
3 changes: 0 additions & 3 deletions .release-please-manifest.json

This file was deleted.

60 changes: 44 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,58 @@
# Changelog
## [unreleased]

## [1.1.1](https://github.com/Xerrion/RaidLogAuto/compare/1.1.0...1.1.1) (2026-02-21)
### ⚙️ Miscellaneous Tasks

- Add workflow_dispatch trigger for manual packaging (#12)
## [1.1.2] - 2026-02-21

### Bug Fixes
### 📚 Documentation

* restore tag configuration in release-please config ([#9](https://github.com/Xerrion/RaidLogAuto/issues/9)) ([d22cff8](https://github.com/Xerrion/RaidLogAuto/commit/d22cff8648bbb2cb411848bf3321a2eadf93aacc))
- Update AGENTS.md for combined workflow

## [1.1.0](https://github.com/Xerrion/RaidLogAuto/compare/v1.0.2...1.1.0) (2026-02-21)
### ⚙️ Miscellaneous Tasks

- Combine release-please and packager into single workflow
- Combine release-please and packager into single workflow (#11)
## [1.1.1] - 2026-02-21

### Features
### 🐛 Bug Fixes

* split addon into version-specific files for multi-version support ([39aaa8c](https://github.com/Xerrion/RaidLogAuto/commit/39aaa8ced0bdc8dce806c555f570534a0d5c39e2))
* split addon into version-specific files for multi-version support ([601c482](https://github.com/Xerrion/RaidLogAuto/commit/601c48281f3db194bdd24d7aa07c9ab55203e32e))
- Restore tag configuration in release-please config (#9)

### 💼 Other

### Bug Fixes
- Simplify release-please tag configuration (#7)

* remove unused variables in RaidLogAuto_Classic.lua ([b6cc09b](https://github.com/Xerrion/RaidLogAuto/commit/b6cc09b5eeae52b1a786cc1a7709e4032924766e))
* remove unused variables in RaidLogAuto_Legacy.lua ([814454a](https://github.com/Xerrion/RaidLogAuto/commit/814454a362616fc8b1f303b72d0fe1b5d94b1c57))
* remove unused variables in RaidLogAuto_Main.lua ([c252942](https://github.com/Xerrion/RaidLogAuto/commit/c252942f34338ce3936c250db3285462d51a802a))
### ⚙️ Miscellaneous Tasks

## 1.0.2 (2026-02-08)
- Update release please info (#6)
- Configure changelog sections for release-please (#8)
- *(master)* Release 1.1.1 (#10)
## [1.1.0] - 2026-02-21

### Features
### 🚀 Features

* Add MoP Classic support
* Exclude icon and generator script from release package
- Split addon into version-specific files for multi-version support

### 🐛 Bug Fixes

- Remove unused variables in RaidLogAuto_Main.lua
- Remove unused variables in RaidLogAuto_Legacy.lua
- Remove unused variables in RaidLogAuto_Classic.lua

### 🚜 Refactor

- Split addon into version-specific files (#5)

### 📚 Documentation

- Modernize README with badges, emojis, and visual improvements

### ⚙️ Miscellaneous Tasks

- Add Release Please for automated versioning and changelog
- Add luacheck linting workflow
- Add luacheck configuration
- Remove redundant release-type from workflow
- *(master)* Release 1.1.0 (#4)
## [1.0.0] - 2026-02-08
Loading