Release a Version #2
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: Release a Version | |
| on: workflow_dispatch | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-java@v2.5.0 | |
| with: | |
| java-version: 21 | |
| distribution: zulu | |
| - run: | | |
| # download the latest nightly Flix JAR | |
| url="https://github.com/mlutze/flix-nightly/releases/latest/download/flix.jar" | |
| curl -L -f "$url" > flix.jar | |
| # run tests | |
| java -jar flix.jar test --github-token ${{ github.token }} | |
| # Build the package | |
| java -jar flix.jar build-pkg | |
| - run: | | |
| java -jar flix.jar release --yes --github-token ${{ github.token }} |