Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
ci: update workflow and update 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed May 28, 2024
1 parent 404f5c6 commit 23d2c2e
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
on:
pull_request:
paths:
- xmake.lua
- src/**
- .github/workflows/build.yml
push:
paths:
- xmake.lua
- src/**
- .github/workflows/build.yml
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1

- uses: actions/cache@v4
with:
path: |
Expand Down
36 changes: 35 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
release:
types:
- published

jobs:
build:
runs-on: windows-latest
Expand Down Expand Up @@ -35,6 +35,8 @@ jobs:
bin/
update-release-notes:
outputs:
release_notes: ${{ steps.extract-release-notes.outputs.release_notes }}
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,3 +77,35 @@ jobs:
with:
files: |
${{ github.event.repository.name }}-windows-x64.zip
upload-to-minebbs:
needs:
- build
- update-release-notes
runs-on: ubuntu-latest
steps:
# 检出代码
- uses: actions/checkout@v4

# 下载构建产物
- uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
path: artifact

# 复制文件
- run: |
cp CHANGELOG.md LICENSE README.md artifact/
# 重新打包
- run: |
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
working-directory: artifact
- name: Upload to MineBBS
uses: engsr6982/[email protected]
with:
minebbs_token: ${{ secrets.MINEBBS_TOKEN }}
resource_id: "4836"
upload_file: ${{ github.event.repository.name }}-windows-x64.zip
update_description: ${{ needs.update-release-notes.outputs.release_notes }} # 使用 update-release-notes 步骤的输出
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.0] - 2024-5-28

## Adapted

- 适配`PermissionCore-0.9.0`

## [0.5.1] - 2024-5-5

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/engsr6982/LeviOPTools",
"version": "0.5.1",
"version": "0.6.0",
"info": {
"name": "LeviOPTools",
"description": "OP管理工具",
Expand All @@ -14,10 +14,10 @@
"tools"
]
},
"asset_url": "https://github.com/engsr6982/LeviOPTools/releases/download/v0.5.1/LeviOPTools-windows-x64.zip",
"asset_url": "https://github.com/engsr6982/LeviOPTools/releases/download/v0.6.0/LeviOPTools-windows-x64.zip",
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.12.x",
"github.com/engsr6982/PermissionCore": "0.8.x"
"github.com/engsr6982/PermissionCore": "0.9.x"
},
"files": {
"place": [
Expand Down

0 comments on commit 23d2c2e

Please sign in to comment.