mirror of
https://github.com/CarmJos/MineSQL.git
synced 2024-09-19 12:15:45 +00:00
ci(upload): 添加构建上传功能
This commit is contained in:
parent
91beae16e7
commit
b554f799ef
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@ -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
|
||||
|
15
.github/workflows/maven.yml
vendored
15
.github/workflows/maven.yml
vendored
@ -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/"
|
Loading…
Reference in New Issue
Block a user