Skip to content

Commit

Permalink
Update tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Mar 28, 2024
1 parent 7b657e7 commit cae4211
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/Javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: JavaDoc Generator

on:
push:
branches: [ 3.x ]
branches: [ release/1.x ]
jobs:

build-on-ubuntu:
Expand All @@ -34,20 +34,20 @@ jobs:
- name: Execute Gradle build
run: |
chmod +x gradlew
./gradlew MAStaff-API:javadoc
./gradlew NookureStaff-API:javadoc
- name: clone JavaDoc
run: |
ls
cd ..
git clone https://github.com/Angelillo15/javadocs.git
cd javadocs
cd ..javadocs
git checkout master
cd ..
rm -r javadocs/javadocs/mastaff/
cd
rm -r javadocs/javadocs/NookureStaff/
ls javadocs/javadocs/
cp -r MAStaff/MAStaff-API/build/docs/javadoc javadocs/javadocs/mastaff/
ls javadocs/javadocs/mastaff
cp -r NookureStaff/MNookureStaff-API/build/docs/javadoc javadocs/javadocs/NookureStaff/
ls javadocs/javadocs/NookureStaff
cd javadocs
git config --global user.email angelrizosrubios@gmail.com
git config --global user.name Angelillo15
Expand All @@ -58,5 +58,5 @@ jobs:
with:
github_token: ${{ secrets.TOKEN }}
branch: master
directory: /home/runner/work/MAStaff/javadocs
directory: /home/runner/work/NookureStaff/javadocs
repository: Angelillo15/javadocs
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: MAStaff build
name: NookureStaff build

on:
push:
branches: [ 3.x ]
branches: [ release/1.x ]
pull_request:
branches: [ 3.x ]
branches: [ release/1.x]
jobs:

build-on-ubuntu:
Expand All @@ -31,12 +31,11 @@ jobs:
- name: Execute Gradle build
run: |
chmod +x gradlew
MASTAFF_NMS=TRUE ./gradlew MAStaff-NMS:publishToMavenLocal
./gradlew shadowJar
mkdir staging && cp build/libs/*.jar staging
- name: Upload the jar
uses: actions/upload-artifact@v2
with:
name: MAStaff
name: NookureStaff
path: staging

0 comments on commit cae4211

Please sign in to comment.