Skip to content

Extracted outside of the official module into Base classes #32

Extracted outside of the official module into Base classes

Extracted outside of the official module into Base classes #32

Workflow file for this run

name: SharkPlanner -> package, create realase(on tag)
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Prepare versions for EXE file
uses: actions/github-script@v6
id: set_version
with:
script: |
const tag = context.ref.substring(10)
const tag_no_v = context.ref.substring(11)
console.log(tag)
core.setOutput('tag', tag)
core.setOutput('tag-no-v', tag_no_v)
if: startsWith(github.ref, 'refs/tags/')
- name: Package
run: |
tree
echo "local VERSION_INFO=\"${{steps.set_version.outputs.tag-no-v}}\"" > SharkPlanner/VersionInfo.lua
echo "return VERSION_INFO" >> SharkPlanner/VersionInfo.lua
zip -9 -r SharkPlanner-${{steps.set_version.outputs.tag-no-v}}.zip Hooks SharkPlanner README.md LICENSE
if: startsWith(github.ref, 'refs/tags/')
- name: Create release and upload asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: SharkPlanner-${{steps.set_version.outputs.tag-no-v}}.zip
token: ${{ secrets.GITHUB_TOKEN }}