Skip to content

Commit

Permalink
Merge pull request #7 from diademiemi/change-workflows
Browse files Browse the repository at this point in the history
Change GitHub workflows
  • Loading branch information
x86-39 authored Aug 11, 2021
2 parents 5fb21be + 94e26b7 commit 5c06902
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: Build JAR for release

on:
release:
types: [published]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: '16'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build Javadoc
run: ./gradlew javadoc
- name: Upload JAR as an artifact
uses: actions/upload-artifact@v2
with:
name: Lineation-${{ github.event.release.tag_name }}.jar
path: build/libs/Lineation-${{ github.event.release.tag_name }}.jar
if-no-files-found: error
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: Java CI with Gradle
name: Java CI check with Gradle

on:
push:
Expand All @@ -27,9 +27,3 @@ jobs:
run: ./gradlew build
- name: Build Javadoc
run: ./gradlew javadoc
- name: Upload JAR as an artifact
uses: actions/upload-artifact@v2
with:
name: Lineation-1.0.2.jar
path: build/libs/Lineation-1.0.2.jar
if-no-files-found: error
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Generate Javadoc and publish to gh-pages

on:
release:
types: [published,edited,created]
types: [published]
workflow_dispatch:


Expand Down

0 comments on commit 5c06902

Please sign in to comment.