Allow game exe override #5
This file contains hidden or 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: Deploy Pipeline | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Build WurstScript and Upload to GitHub Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Grant Gradle permissions | |
working-directory: ./de.peeeq.wurstscript | |
run: chmod +x ./gradlew | |
- name: Build WurstScript zips | |
working-directory: ./de.peeeq.wurstscript | |
run: ./gradlew create_zips | |
- name: Create or update nightly-master tag | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git tag -f nightly-master | |
git push -f origin nightly-master | |
- name: Create GitHub Release and upload zips | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: nightly-master | |
name: Nightly Build (master) | |
body: "This release is automatically updated from the latest push to `master`." | |
draft: false | |
prerelease: true | |
files: | | |
de.peeeq.wurstscript/build/distributions/wurstpack_complete.zip | |
de.peeeq.wurstscript/build/distributions/wurstpack_compiler.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |