Skip to content

Merge pull request #738 from elanthia-online/update.rb-FileUtils.rm_r… #57

Merge pull request #738 from elanthia-online/update.rb-FileUtils.rm_r…

Merge pull request #738 from elanthia-online/update.rb-FileUtils.rm_r… #57

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: 'release-changelog-builder-config.json'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Core Lich-5 package
id: install_core_scripts
run: |
mkdir lich5
mkdir lich5/data
mkdir lich5/scripts
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/alias.lic > lich5/scripts/alias.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/autostart.lic > lich5/scripts/autostart.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/ewaggle.lic > lich5/scripts/ewaggle.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/go2.lic > lich5/scripts/go2.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/jinx.lic > lich5/scripts/jinx.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/lich5-update.lic > lich5/scripts/lich5-update.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/log.lic > lich5/scripts/log.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/map.lic > lich5/scripts/map.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/repository.lic > lich5/scripts/repository.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/vars.lic > lich5/scripts/vars.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/version.lic > lich5/scripts/version.lic
curl https://raw.githubusercontent.com/elanthia-online/dr-scripts/master/dependency.lic > lich5/scripts/dependency.lic
curl https://raw.githubusercontent.com/elanthia-online/scripts/master/scripts/effect-list.xml > lich5/data/effect-list.xml
cp lich.rbw lich5/
cp -r lib lich5/
tar -czvf lich-5.tar.gz lich5/
zip -r lich-5.zip lich5/
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{steps.build_changelog.outputs.changelog}}
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
files: |
lich-5.tar.gz
lich-5.zip