mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
40 lines
786 B
YAML
40 lines
786 B
YAML
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 }}
|