feat: add build scripts

This commit is contained in:
TopchetoEU 2023-08-26 11:24:26 +03:00
parent 50739de70c
commit 720f306e1b
No known key found for this signature in database
GPG Key ID: 24E57B2E9C61AD19
2 changed files with 29 additions and 0 deletions

28
.github/workflows/tagged-release.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: "tagged-release"
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- name: "Build & test"
run: |
mkdir -p dst/classes
rsync -av --exclude='*.java' src/ dst/classes
tsc --outDir dst/classes/me/topchetoeu/jscript/js --declarationDir dst/classes/me/topchetoeu/jscript/dts
find src -name "*.java" | xargs javac -d dst/classes
jar -c -f dst/jscript.jar -e me.topchetoeu.jscript.Main -C dst/classes .
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE
dst/*.jar

1
.gitignore vendored
View File

@ -4,4 +4,5 @@
out
build
bin
dst
/*.js