Skip to content

Commit 31ce217

Browse files
authored
Merge pull request #69 from ZayrexDev/master
update workflows
2 parents d4480c6 + 68323c9 commit 31ce217

1 file changed

Lines changed: 50 additions & 8 deletions

File tree

.github/workflows/package.yml

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,70 @@ on:
1010
- master
1111

1212
jobs:
13-
build:
14-
13+
buildlinux:
1514
runs-on: ubuntu-latest
1615
permissions:
1716
contents: read
1817
packages: write
19-
2018
steps:
2119
- uses: actions/checkout@v4
2220
- name: Set up JDK 21
2321
uses: actions/setup-java@v4
2422
with:
2523
java-version: '21'
2624
distribution: 'temurin'
27-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
28-
settings-path: ${{ github.workspace }} # location for the settings.xml file
29-
25+
server-id: github
26+
settings-path: ${{ github.workspace }}
3027
- name: Build with Maven
3128
run: mvn -B package --file pom.xml
32-
3329
- name: Upload a Build Artifact
3430
uses: actions/upload-artifact@v4.6.2
3531
with:
32+
name: linux
3633
path: target/ACGPicDownload-*-jar-with-dependencies.jar
37-
retention-days: 30
34+
retention-days: 7
35+
buildwin:
36+
runs-on: windows-latest
37+
permissions:
38+
contents: read
39+
packages: write
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Set up JDK 21
43+
uses: actions/setup-java@v4
44+
with:
45+
java-version: '21'
46+
distribution: 'temurin'
47+
server-id: github
48+
settings-path: ${{ github.workspace }}
49+
- name: Build with Maven
50+
run: mvn -B package --file pom.xml
51+
- name: Upload a Build Artifact
52+
uses: actions/upload-artifact@v4.6.2
53+
with:
54+
name: win
55+
path: target/ACGPicDownload-*-jar-with-dependencies.jar
56+
retention-days: 7
57+
buildmacos:
58+
runs-on: macos-latest
59+
permissions:
60+
contents: read
61+
packages: write
62+
steps:
63+
- uses: actions/checkout@v4
64+
- name: Set up JDK 21
65+
uses: actions/setup-java@v4
66+
with:
67+
java-version: '21'
68+
distribution: 'temurin'
69+
server-id: github
70+
settings-path: ${{ github.workspace }}
71+
- name: Build with Maven
72+
run: mvn -B package --file pom.xml
73+
- name: Upload a Build Artifact
74+
uses: actions/upload-artifact@v4.6.2
75+
with:
76+
name: macos
77+
path: target/ACGPicDownload-*-jar-with-dependencies.jar
78+
retention-days: 7
79+

0 commit comments

Comments
 (0)