mirror of
https://github.com/CarmJos/MineSQL.git
synced 2024-09-19 20:25: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_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
|
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:
|
central-deploy:
|
||||||
name: "Deploy Project (Central)"
|
name: "Deploy Project (Central)"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
15
.github/workflows/maven.yml
vendored
15
.github/workflows/maven.yml
vendored
@ -27,10 +27,15 @@ jobs:
|
|||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
- name: "Package"
|
- name: "Package"
|
||||||
run: mvn -B package --file pom.xml -Dgpg.skip
|
run: mvn -B package --file pom.xml -Dgpg.skip
|
||||||
- name: "Target Stage"
|
|
||||||
run: mkdir staging && cp */target/*.jar staging
|
- name: "Upload artifacts"
|
||||||
- name: "Upload artifact"
|
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Artifact
|
name: artifacts
|
||||||
path: staging
|
path: "**/target/"
|
||||||
|
|
||||||
|
- name: "Upload assets"
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: assets
|
||||||
|
path: ".asset/"
|
Loading…
Reference in New Issue
Block a user