CI update

This commit is contained in:
samo_lego 2020-08-10 17:03:42 +02:00
parent 5ffbfb426e
commit eeadddfff6
2 changed files with 16 additions and 19 deletions

View File

@ -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:

View File

@ -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 }}