forked from mirror/DotRecast
feat: add resource folder
This commit is contained in:
parent
c905abb714
commit
a1e38a493d
|
@ -7,8 +7,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
working-directory: ./dotnet-workflow
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -20,15 +18,12 @@ jobs:
|
||||||
dotnet-version: '7.x'
|
dotnet-version: '7.x'
|
||||||
|
|
||||||
- name: restore dependencies
|
- name: restore dependencies
|
||||||
working-directory: ${{ env.working-directory }}
|
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
working-directory: ${{ env.working-directory }}
|
|
||||||
run: dotnet build -c Release --no-restore
|
run: dotnet build -c Release --no-restore
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
working-directory: ${{ env.working-directory }}
|
|
||||||
run: dotnet publish src/DotRecast.Recast.Demo -c Release --no-restore --no-self-contained --output working-temp
|
run: dotnet publish src/DotRecast.Recast.Demo -c Release --no-restore --no-self-contained --output working-temp
|
||||||
|
|
||||||
- name: version
|
- name: version
|
||||||
|
@ -44,6 +39,7 @@ jobs:
|
||||||
- name: Zip
|
- name: Zip
|
||||||
working-directory: ${{ env.working-directory }}
|
working-directory: ${{ env.working-directory }}
|
||||||
run: |
|
run: |
|
||||||
|
cp -rfv resources working-temp
|
||||||
cd working-temp
|
cd working-temp
|
||||||
echo "dotnet DotRecast.Recast.Demo.dll" > run.bat
|
echo "dotnet DotRecast.Recast.Demo.dll" > run.bat
|
||||||
zip -r ../DotRecast.Recast.Demo-${{ steps.version.outputs.version}}.zip ./
|
zip -r ../DotRecast.Recast.Demo-${{ steps.version.outputs.version}}.zip ./
|
||||||
|
@ -60,7 +56,7 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
${{ env.working-directory }}/DotRecast.Recast.Demo-${{ steps.version.outputs.version}}.zip
|
DotRecast.Recast.Demo-${{ steps.version.outputs.version}}.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue