CI update
This commit is contained in:
parent
5ffbfb426e
commit
eeadddfff6
|
@ -16,9 +16,9 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
name: Fetching branches
|
||||
with:
|
||||
ref: 'fabric-snapshot' # Branch to build from
|
||||
name: Fetching branches
|
||||
with:
|
||||
ref: 'fabric-snapshot' # Branch to build from
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# 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
|
||||
|
||||
name: Gradle Build
|
||||
name: Fabric CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: fabric
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: fabric
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -16,9 +16,9 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Fetching branches
|
||||
run: |
|
||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||
name: Fetching branches
|
||||
with:
|
||||
ref: ${{ on.push.branches }}
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
|
@ -32,13 +32,10 @@ jobs:
|
|||
- name: Running renaming script
|
||||
run: ./renaming.sh
|
||||
|
||||
# Publishing to dev-builds branch
|
||||
- name: GitHub Pages
|
||||
if: success()
|
||||
uses: crazy-max/ghaction-github-pages@v1.4.0
|
||||
# Artifact upload
|
||||
- name: Uploading artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
build_dir: build/libs
|
||||
target_branch: dev-builds
|
||||
keep_history: false
|
||||
env:
|
||||
GITHUB_PAT: ${{ secrets.pat }}
|
||||
#name: ${{ env.BUILDNAME }}.jar
|
||||
name: UNZIP_ME_${{ env.BUILDNAME }}.zip
|
||||
path: build/libs/${{ env.BUILDNAME }}.jar
|
Loading…
Reference in New Issue