fix build workflow and add release workflow #1
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: Build and Deploy WurstScript | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Build WurstScript and Upload Artifacts | |
| 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 WurstPack zips | |
| working-directory: ./de.peeeq.wurstscript | |
| run: ./gradlew create_zips | |
| - name: Upload wurstpack_complete.zip as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wurstpack_complete | |
| path: downloads/wurstpack_complete.zip | |
| - name: Upload wurstpack_compiler.zip as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wurstpack_compiler | |
| path: downloads/wurstpack_compiler.zip |