fix: use sane build pipeline
This commit is contained in:
parent
6d0a4739ac
commit
847b308c14
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
@ -18,23 +18,27 @@ jobs:
|
|||||||
os: [ubuntu-22.04, windows-2022]
|
os: [ubuntu-22.04, windows-2022]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: Setup Java
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: validate gradle wrapper
|
|
||||||
uses: gradle/wrapper-validation-action@v1
|
|
||||||
- name: setup jdk ${{ matrix.java }}
|
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
distribution: 'adopt'
|
||||||
distribution: 'microsoft'
|
java-version: '17'
|
||||||
- name: make gradle wrapper executable
|
- name: Setup Gradle
|
||||||
if: ${{ runner.os != 'Windows' }}
|
uses: gradle/gradle-build-action@v2
|
||||||
run: chmod +x ./gradlew
|
- name: Clone repository
|
||||||
- name: build
|
uses: GuillaumeFalourd/clone-github-repo-action@main
|
||||||
run: ./gradlew build
|
|
||||||
- name: capture build artifacts
|
|
||||||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
branch: 'master'
|
||||||
path: build/libs/
|
owner: 'TopchetoEU'
|
||||||
|
repository: 'java-jscript'
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cd java-jscript; gradle build
|
||||||
|
|
||||||
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
|
with:
|
||||||
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
prerelease: false
|
||||||
|
files: |
|
||||||
|
java-jscript/LICENSE
|
||||||
|
java-jscript/build/libs/*.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user