feat: added herobrine content #100
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: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
discussions: write | |
pull-requests: write | |
jobs: | |
tests: | |
uses: ./.github/workflows/tests.yml | |
release: | |
name: Create Release | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
needs: [tests] | |
steps: | |
# Checkout repository and include git LFS files | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
lfs: true | |
# Download files from Git LFS and caches them to reduce bandwidth usage | |
- name: Cache and pull LFS files | |
uses: ./.github/actions/lfs | |
# Makes the semantic tag variable available for use in workflow | |
- uses: jveldboom/action-conventional-versioning@v1 | |
id: version | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
default-bump: patch | |
# Update version text in pack.mcmeta | |
- name: Update Resourcepack Version String | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: "DONT_TOUCH_THIS_STRING" | |
replace: ${{ steps.version.outputs.version-with-prefix }} | |
include: "pack.mcmeta" # Will match the pack.mcmeta file in root | |
# Create optimized archive for release | |
- name: Compile Release Archive | |
uses: ComunidadAylas/PackSquash-action@v4 | |
with: | |
packsquash_version: latest | |
options: | | |
# Optimize the pack in the root repository directory. | |
# This is the default value for pack_directory when no PackSquash options are defined | |
pack_directory = '.' | |
# Set a custom output file path to work with the generated ZIP file | |
# without needing to download its artifact in a separate step | |
output_file_path = '/tmp/Alathra-${{ steps.version.outputs.version-with-prefix }}.zip' | |
# Generate changelog | |
- name: Changelog | |
uses: ardalanamini/auto-changelog@v4 | |
id: changelog | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
commit-types: | | |
feat: New Features | |
fix: Bug Fixes | |
build: Build System & Dependencies | |
perf: Performance Improvements | |
docs: Documentation | |
test: Tests | |
refactor: Refactors | |
chore: Chores | |
ci: CI | |
style: Code Style | |
revert: Reverts | |
default-commit-type: Other Changes | |
release-name: ${{ steps.version.outputs.version-with-prefix }} | |
mention-authors: true | |
mention-new-contributors: true | |
include-compare-link: true | |
include-pr-links: true | |
include-commit-links: true | |
semver: true | |
use-github-autolink: true | |
# Create release | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
/tmp/Alathra-${{ steps.version.outputs.version-with-prefix }}.zip | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag_name: ${{ steps.version.outputs.version-with-prefix }} | |
draft: false | |
prerelease: false | |
generate_release_notes: false | |
body: ${{ steps.changelog.outputs.changelog }} |