-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 3d62e6b.
- Loading branch information
1 parent
3d62e6b
commit 060a260
Showing
1,059 changed files
with
136,089 additions
and
2,813 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,46 @@ | ||
name: Build | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build website | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the main branch | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: windows-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Get Current Visual Studio Information | ||
shell: bash | ||
run: | | ||
dotnet tool update -g dotnet-vs | ||
echo "## About RELEASE ##" | ||
vs where release | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
|
||
- name: Install .NET 6 | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Install .NET 7 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Install DotNet workloads | ||
shell: bash | ||
run: | | ||
dotnet workload install android ios tvos macos maui maccatalyst | ||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
with: | ||
vs-prerelease: true | ||
|
||
- name: Install NuGet | ||
uses: nuget/setup-nuget@v1 | ||
with: | ||
nuget-version: '6.x' | ||
|
||
- name: NuGet Restore | ||
run: nuget restore | ||
|
||
- name: Build DotNet | ||
run: dotnet build --no-restore --configuration Release | ||
|
||
- name: Run DotNet | ||
run: dotnet run --no-restore --no-build --configuration Release | ||
|
||
- name: Install Node.js | ||
if: ${{ github.event_name != 'pull_request' }} | ||
dotnet-version: | | ||
2.1.x | ||
3.1.x | ||
5.0.x | ||
6.0.x | ||
7.0.x | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build Website | ||
uses: cake-build/cake-action@v1 | ||
with: | ||
verbosity: Diagnostic | ||
cake-bootstrap: true | ||
- name: Deploy netlify | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: | | ||
npm install -g netlify-cli | ||
netlify deploy --auth=${{ secrets.NETLIFY_DEPLOY_KEY }} --site=${{ secrets.NETLIFY_SITE_ID }} --prod --dir=output | ||
netlify deploy --auth=${{ secrets.NETLIFY_DEPLOY_KEY }} --site=${{ secrets.NETLIFY_SITE_ID }} --prod --dir=output |
Oops, something went wrong.