update README. [skip CI] #893
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: [ main ] | |
tags: 'v*.*.*' | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2022 | |
if: "startsWith(github.ref, 'refs/tags/') || (!contains(github.event.head_commit.message, '[skip CI]') && !contains(github.event.head_commit.message, '[skip Windows]'))" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup msbuild | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Windows build | |
run: msbuild Project\Windows\Dora.sln -p:Configuration=release | |
- name: Pack | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
cd Tools\dora-dora | |
yarn install --network-timeout 1000000 | |
yarn build | |
ren build www | |
7z a ..\..\dora-ssr-windows-x86.7z www | |
cd ..\.. | |
cd Tools\YarnEditor | |
yarn | |
yarn build-win | |
ren dist yarn-editor | |
mkdir www | |
move yarn-editor www | |
7z a ..\..\dora-ssr-windows-x86.7z www\yarn-editor | |
cd ..\.. | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Audio && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z DragonBones && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Font && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Image\dora.svg && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Image\logo.png && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Model && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Particle && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Script && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Spine && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Doc && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z gamecontrollerdb.txt && cd ..) | |
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z LICENSES && cd ..) | |
(cd Project\Windows\build\Release && 7z a ..\..\..\..\dora-ssr-windows-x86.7z Dora.exe && cd ..\..\..\..) | |
ren dora-ssr-windows-x86.7z dora-ssr-${{ github.ref_name }}-windows-x86.7z | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dora-ssr-${{ github.ref_name }}-windows-x86.7z | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |