Skip to content

Commit

Permalink
add release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
KirisameMarisa committed Jan 6, 2024
1 parent 4ab7a85 commit 7b7839b
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name-template: '$YEAR-$MONTH-$DAY Release $COUNT 🚀'
tag-template: '$YEAR-$MONTH-$DAY Release $COUNT'

categories:
- title: '🚀 Features'
label: 'enhancement'
- title: '🐛 Bug Fixes'
label: 'bug'
- title: '🔧 Refactoring'
label: 'refactor'
- title: '📖 Documentation'
label: 'documentation'
- title: '✅ Tests'
label: 'test'
- title: 'Other Changes'
label: '*'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'

template: |
## Changes
$CHANGES
autolabeler:
- label: enhancement
branch:
- '/^feat(ure)?[/-].+/'
- label: bug
branch:
- '/^fix[/-].+/'
- label: test
branch:
- '/^test[/-].+/'
- label: refactor
branch:
- '/^refactor[/-].+/'
- label: documentation
branch:
- '/^doc[/-].+/'
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release Drafter

on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
release:
permissions:
contents: write
pull-requests: write

runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

# - name: Set up .NET Core
# uses: actions/setup-dotnet@v7
# with:
# dotnet-version: '3.1'

# - name: Build C# application
# run: dotnet build -c Release

# - name: Archive application
# run: zip -r app.zip path/to/your/application

- name: Archive UE plugin
run: zip -r UnrealEngine.zip Plugins/UnrealEngine

- name: Archive Unity plugin
run: zip -r Unity.zip Plugins/Unity

- name: Archive Godot plugin
run: zip -r Godot.zip Plugins/Godot

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: |
UnrealEngine.zip
Unity.zip
Godot.zip
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7b7839b

Please sign in to comment.