Skip to content

Commit

Permalink
Merge pull request #1 from stevei5mc/dev
Browse files Browse the repository at this point in the history
修改构建流
  • Loading branch information
stevei5mc committed Nov 12, 2023
2 parents f630eb1 + 911cc4e commit a134381
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,36 @@ jobs:
cache: maven
- name: 构建
run: mvn -B package --file pom.xml
- name: 收集构建文件-1
run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v1
- name: 收集构建文件
run: |
mkdir staging && cp target/*.jar staging
pwd
ls -la
- name: 收集构建文件
uses: actions/upload-artifact@v1
with:
name: UnicodeVariables
path: staging
- name: 创建新版本
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false
- name: 发布新版本
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./target/UnicodeVariables-${{ github.ref }}.jar
asset_name: UnicodeVariables-${{ github.ref }}.jar
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: UnicodeVariables
path: staging
path: staging
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.stevei5mc</groupId>
<artifactId>UnicodeVariables</artifactId>
<version>1.0.0</version>
<version>1.0.1-beta1</version>

<repositories>
<repository>
Expand All @@ -31,7 +31,7 @@
</repository>
<repository>
<id>repo-lanink-cn</id>
<url>https://repo.lanink.cn/</url>
<url>https://repo.lanink.cn/repository/maven-public/</url>
</repository>
</repositories>

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: UnicodeVariables
main: cn.stevei5mc.UnicodeVariables.main
version: '1.0.0'
version: '1.0.1-beta1'
author: stevei5mc
api: ["1.0.0"]

0 comments on commit a134381

Please sign in to comment.