mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
ci.添加 MaaWpf 和 MaaResource 的 Release
This commit is contained in:
39
.github/workflows/maa-release-resource.yaml
vendored
Normal file
39
.github/workflows/maa-release-resource.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Release MaaResource
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- resource/**
|
||||
- 3rdparty/resource/**
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
release-resource:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup .NET 6.0.x
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
|
||||
- name: Run release resource task
|
||||
run: pwsh .\build.ps1 ReleaseResource
|
||||
|
||||
- name: Read file name
|
||||
id: read_path
|
||||
run: pwsh .\read_path.ps1 ./artifacts MaaResource*
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.read_path.outputs.name_0 }}
|
||||
path: ${{ steps.read_path.outputs.path_0 }}
|
||||
38
.github/workflows/maa-release-wpf.yaml
vendored
Normal file
38
.github/workflows/maa-release-wpf.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Release MaaWpf
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- src/MeoAsstGui/**
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
release-wpf:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup .NET 6.0.x
|
||||
uses: actions/setup-dotnet@v2
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
|
||||
- name: Run release wpf task
|
||||
run: pwsh .\build.ps1 ReleaseWpf
|
||||
|
||||
- name: Read file name
|
||||
id: read_path
|
||||
run: pwsh .\read_path.ps1 ./artifacts MaaWpf*
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.read_path.outputs.name_0 }}
|
||||
path: ${{ steps.read_path.outputs.path_0 }}
|
||||
Reference in New Issue
Block a user