CI update
This commit is contained in:
parent
5ffbfb426e
commit
eeadddfff6
|
@ -16,9 +16,9 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
name: Fetching branches
|
name: Fetching branches
|
||||||
with:
|
with:
|
||||||
ref: 'fabric-snapshot' # Branch to build from
|
ref: 'fabric-snapshot' # Branch to build from
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# This workflow will build a Java project with Gradle
|
# This workflow will build a Java project with Gradle
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
name: Gradle Build
|
name: Fabric CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: fabric
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: fabric
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -16,9 +16,9 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Fetching branches
|
name: Fetching branches
|
||||||
run: |
|
with:
|
||||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
ref: ${{ on.push.branches }}
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
|
@ -31,14 +31,11 @@ jobs:
|
||||||
run: chmod +x renaming.sh
|
run: chmod +x renaming.sh
|
||||||
- name: Running renaming script
|
- name: Running renaming script
|
||||||
run: ./renaming.sh
|
run: ./renaming.sh
|
||||||
|
|
||||||
# Publishing to dev-builds branch
|
# Artifact upload
|
||||||
- name: GitHub Pages
|
- name: Uploading artifacts
|
||||||
if: success()
|
uses: actions/upload-artifact@v2
|
||||||
uses: crazy-max/ghaction-github-pages@v1.4.0
|
|
||||||
with:
|
with:
|
||||||
build_dir: build/libs
|
#name: ${{ env.BUILDNAME }}.jar
|
||||||
target_branch: dev-builds
|
name: UNZIP_ME_${{ env.BUILDNAME }}.zip
|
||||||
keep_history: false
|
path: build/libs/${{ env.BUILDNAME }}.jar
|
||||||
env:
|
|
||||||
GITHUB_PAT: ${{ secrets.pat }}
|
|
Loading…
Reference in New Issue