This commit is contained in:
Ben C 2022-05-17 21:33:46 -04:00
parent 2f5d88341c
commit e78b636481
2 changed files with 4 additions and 4 deletions

View File

@ -21,11 +21,11 @@ jobs:
# Set to Release if we're in master, otherwise keep us in Debug # Set to Release if we're in master, otherwise keep us in Debug
- name: Set Release - name: Set Release
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/main'
run: echo "BUILD_TYPE=Release" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append run: echo "BUILD_TYPE=Release" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- name: Set Debug - name: Set Debug
if: github.ref != 'refs/heads/master' if: github.ref != 'refs/heads/main'
run: echo "BUILD_TYPE=Debug" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append run: echo "BUILD_TYPE=Debug" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- uses: actions/setup-dotnet@v1 - uses: actions/setup-dotnet@v1

View File

@ -40,7 +40,7 @@ jobs:
- run: cp -r docs/** . - run: cp -r docs/** .
- if: github.ref == 'refs/heads/master' - if: github.ref == 'refs/heads/main'
run: | run: |
echo "URL_PREFIX=/" >> $GITHUB_ENV echo "URL_PREFIX=/" >> $GITHUB_ENV
@ -79,7 +79,7 @@ jobs:
path: out/ path: out/
- name: Deploy To Pages - name: Deploy To Pages
if: success() && github.ref == 'refs/heads/master' if: success() && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@4.1.5 uses: JamesIves/github-pages-deploy-action@4.1.5
with: with:
branch: gh-pages branch: gh-pages