1
mirror of https://github.com/CarmJos/MineSQL.git synced 2024-09-19 12:15:45 +00:00

ci(upload): 添加构建上传功能

This commit is contained in:
Carm Jos 2022-12-18 03:07:06 +08:00
parent 91beae16e7
commit b554f799ef
2 changed files with 20 additions and 5 deletions

View File

@ -33,6 +33,16 @@ jobs:
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: "Release Asset Upload"
id: upload-release-asset
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ".asset/*.jar"
asset_content_type: application/java-archive
central-deploy:
name: "Deploy Project (Central)"
runs-on: ubuntu-latest

View File

@ -27,10 +27,15 @@ jobs:
distribution: 'adopt'
- name: "Package"
run: mvn -B package --file pom.xml -Dgpg.skip
- name: "Target Stage"
run: mkdir staging && cp */target/*.jar staging
- name: "Upload artifact"
- name: "Upload artifacts"
uses: actions/upload-artifact@v2
with:
name: Artifact
path: staging
name: artifacts
path: "**/target/"
- name: "Upload assets"
uses: actions/upload-artifact@v2
with:
name: assets
path: ".asset/"