Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from pa733/master
Browse files Browse the repository at this point in the history
Update msbuild.yml
  • Loading branch information
twoone-3 authored Aug 7, 2021
2 parents c11d753 + 05c7f2a commit 025a85c
Showing 1 changed file with 60 additions and 30 deletions.
90 changes: 60 additions & 30 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,63 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild ./BDSpyrunner.sln -property:Configuration=Release

- name: MkDirs
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir D:/out
- name: Copy Out Files
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cp -a D:/a/BDSpyrunner/test/bdxcore_mod/*.dll D:/out
cp -a D:/a/BDSpyrunner/test/bdxcore_mod/*.pdb D:/out
shell: bash

- name: Upload artifact
uses: actions/[email protected]
with:
name: BDSpyrunner
path: D:/out
- uses: actions/checkout@v2

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild ./BDSpyrunner.sln -property:Configuration=Release

- name: MkDirs
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir D:/out
- name: Copy Out Files
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cp -a D:/a/BDSpyrunner/test/bdxcore_mod/*.dll D:/out
cp -a D:/a/BDSpyrunner/test/bdxcore_mod/*.pdb D:/out
shell: bash

- name: package
if: startsWith(github.event.ref, 'refs/tags/v')
shell: pwsh
run: Compress-Archive -Path D:/out/* out.zip

- name: Create Release
if: startsWith(github.event.ref, 'refs/tags/v')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PYR_PUBLISH }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ""
draft: false
prerelease: false

- name: Upload Release Asset
if: startsWith(github.event.ref, 'refs/tags/v')
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PYR_PUBLISH }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./out.zip
asset_name: BDSpyrunner.zip
asset_content_type: application/zip

- name: Upload artifact
uses: actions/[email protected]
with:
name: BDSpyrunner
path: D:/out

0 comments on commit 025a85c

Please sign in to comment.