Skip to content

Commit 1d69630

Browse files
committed
change deploy configuration
1 parent ced383b commit 1d69630

File tree

3 files changed

+10
-24
lines changed

3 files changed

+10
-24
lines changed

.github/workflows/build-test.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,15 @@ jobs:
77
name: Build with Java 8
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-java@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-java@v4
1212
with:
1313
java-version: "8"
1414
distribution: "adopt"
1515
cache: "maven"
16-
- name: Check CrackShot existence
17-
id: check_crackshot
18-
uses: andstor/file-existence-action@v1
19-
with:
20-
files: "/home/runner/.m2/repository/com/shampaggon/CrackShot/0.98.11/CrackShot-0.98.11.pom"
21-
- name: Download CrackShot v0.98.11
22-
if: steps.check_crackshot.outputs.files_exists == 'false'
23-
run: curl -L -o CrackShot.jar https://dev.bukkit.org/projects/crackshot/files/3151915/download
24-
- name: Install CrackShot into local mvn repo
25-
if: steps.check_crackshot.outputs.files_exists == 'false'
26-
run: mvn install:install-file -Dfile=./CrackShot.jar -DgroupId=com.shampaggon -DartifactId=CrackShot -Dversion=0.98.11 -Dpackaging=jar -DgeneratePom=true
16+
- name: Prepare settings.xml
17+
run: |
18+
echo "<settings><servers><server><id>azisaba</id><username>${{ secrets.REPO_USERNAME }}</username><password>${{ secrets.REPO_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
2719
- run: java -version
2820
- run: mvn --version
2921
- run: mvn -B package

.github/workflows/deploy.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ jobs:
2222
java-version: '8'
2323
distribution: 'adopt'
2424
server-id: azisaba
25-
- name: Check CrackShot existence
26-
id: check_crackshot
27-
uses: andstor/file-existence-action@v1
28-
with:
29-
files: "/home/runner/.m2/repository/com/shampaggon/CrackShot/0.98.11/CrackShot-0.98.11.pom"
30-
- name: Download CrackShot v0.98.11
31-
if: steps.check_crackshot.outputs.files_exists == 'false'
32-
run: curl -L -o CrackShot.jar https://dev.bukkit.org/projects/crackshot/files/3151915/download
33-
- name: Install CrackShot into local mvn repo
34-
if: steps.check_crackshot.outputs.files_exists == 'false'
35-
run: mvn install:install-file -Dfile=./CrackShot.jar -DgroupId=com.shampaggon -DartifactId=CrackShot -Dversion=0.98.11 -Dpackaging=jar -DgeneratePom=true
3625
- name: Build with Maven
3726
run: mvn -B package --file pom.xml
3827
- name: Prepare settings.xml

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
<id>papermc</id>
6363
<url>https://repo.papermc.io/repository/maven-public/</url>
6464
</repository>
65+
<repository>
66+
<id>azisaba</id>
67+
<url>https://repo.azisaba.net/repository/proprietary</url>
68+
</repository>
69+
6570
</repositories>
6671

6772
<dependencies>

0 commit comments

Comments
 (0)