Fix AccessTools.GetTypesFromAssembly sometimes returning an array wit… #251
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: Build | |
on: [push] | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.300 | |
- name: Log dotnet info | |
run: dotnet --info | |
- name: Run test | |
run: ./build.ps1 --target=Test | |
build: | |
runs-on: windows-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.300 | |
- name: Make repo pushable | |
env: | |
GITHUB_USER: ${{ secrets.GITHUB_USER }} | |
GITHUB_PAT: ${{ secrets.GITHUB_PAT }} | |
shell: bash | |
run: git remote set-url --push origin https://$GITHUB_USER:[email protected]/$GITHUB_REPOSITORY.git | |
- name: Run build script | |
run: ./build.ps1 --target=Build | |
- name: Create a release tag | |
if: github.ref == 'refs/heads/master' | |
env: | |
NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
run: ./build.ps1 --target=Publish --nugetKey="${env:NUGET_KEY}" | |
- name: Get target file | |
id: getfilename | |
shell: bash | |
run: echo "::set-output name=file::$(ls ./Harmony/bin/Release/HarmonyX*.nupkg)" | |
- uses: actions/upload-artifact@v1 | |
with: | |
path: ${{ steps.getfilename.outputs.file }} | |
name: HarmonyX |