Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 50 additions & 8 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,70 @@ on:
- master

jobs:
build:

buildlinux:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: linux
path: target/ACGPicDownload-*-jar-with-dependencies.jar
retention-days: 30
retention-days: 7
buildwin:
runs-on: windows-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: win
path: target/ACGPicDownload-*-jar-with-dependencies.jar
retention-days: 7
buildmacos:
runs-on: macos-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
name: macos
path: target/ACGPicDownload-*-jar-with-dependencies.jar
retention-days: 7

Loading