Update setup-dotnet in gh actions (#12261)
This commit is contained in:
18
.github/workflows/build-docfx.yml
vendored
18
.github/workflows/build-docfx.yml
vendored
@@ -4,10 +4,10 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 0"
|
- cron: "0 0 * * 0"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docfx:
|
docfx:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup submodule
|
- name: Setup submodule
|
||||||
run: |
|
run: |
|
||||||
@@ -19,23 +19,23 @@ jobs:
|
|||||||
cd RobustToolbox/
|
cd RobustToolbox/
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Build Project
|
- name: Build Project
|
||||||
run: dotnet build --no-restore /p:WarningsAsErrors=nullable
|
run: dotnet build --no-restore /p:WarningsAsErrors=nullable
|
||||||
|
|
||||||
- name: Build DocFX
|
- name: Build DocFX
|
||||||
uses: nikeee/docfx-action@v1.0.0
|
uses: nikeee/docfx-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
args: Content.Docfx/docfx.json
|
args: Content.Docfx/docfx.json
|
||||||
|
|
||||||
- name: Publish Docfx Documentation on GitHub Pages
|
- name: Publish Docfx Documentation on GitHub Pages
|
||||||
uses: maxheld83/ghpages@master
|
uses: maxheld83/ghpages@master
|
||||||
env:
|
env:
|
||||||
BUILD_DIR: Content.Docfx/_content-site
|
BUILD_DIR: Content.Docfx/_content-site
|
||||||
GH_PAT: ${{ secrets.GH_PAT }}
|
GH_PAT: ${{ secrets.GH_PAT }}
|
||||||
|
|||||||
2
.github/workflows/build-test-debug.yml
vendored
2
.github/workflows/build-test-debug.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/build-test-release.yml
vendored
2
.github/workflows/build-test-release.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.100
|
dotnet-version: 6.0.100
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/test-packaging.yml
vendored
2
.github/workflows/test-packaging.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
|
|
||||||
|
|||||||
22
.github/workflows/update-wiki.yml
vendored
22
.github/workflows/update-wiki.yml
vendored
@@ -19,37 +19,37 @@ jobs:
|
|||||||
name: Build and Publish JSON blobs to wiki
|
name: Build and Publish JSON blobs to wiki
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Master
|
- name: Checkout Master
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Submodule
|
- name: Setup Submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Pull Engine Updates
|
- name: Pull Engine Updates
|
||||||
uses: space-wizards/submodule-dependency@v0.1.5
|
uses: space-wizards/submodule-dependency@v0.1.5
|
||||||
|
|
||||||
- name: Update Engine Submodules
|
- name: Update Engine Submodules
|
||||||
run: |
|
run: |
|
||||||
cd RobustToolbox/
|
cd RobustToolbox/
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.100
|
dotnet-version: 6.0.100
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Build Project
|
- name: Build Project
|
||||||
run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable /m
|
run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable /m
|
||||||
|
|
||||||
- name: Generate JSON blobs for prototypes
|
- name: Generate JSON blobs for prototypes
|
||||||
run: dotnet ./bin/Content.Server/Content.Server.dll --cvar autogen.destination_file=prototypes.json
|
run: dotnet ./bin/Content.Server/Content.Server.dll --cvar autogen.destination_file=prototypes.json
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Upload chem_prototypes.json to wiki
|
- name: Upload chem_prototypes.json to wiki
|
||||||
uses: jtmullen/mediawiki-edit-action@v0.1.1
|
uses: jtmullen/mediawiki-edit-action@v0.1.1
|
||||||
with:
|
with:
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
api_url: https://wiki.spacestation14.io/w/api.php
|
api_url: https://wiki.spacestation14.io/w/api.php
|
||||||
username: ${{ secrets.WIKI_BOT_USER }}
|
username: ${{ secrets.WIKI_BOT_USER }}
|
||||||
password: ${{ secrets.WIKI_BOT_PASS }}
|
password: ${{ secrets.WIKI_BOT_PASS }}
|
||||||
|
|
||||||
- name: Upload react_prototypes.json to wiki
|
- name: Upload react_prototypes.json to wiki
|
||||||
uses: jtmullen/mediawiki-edit-action@v0.1.1
|
uses: jtmullen/mediawiki-edit-action@v0.1.1
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/yaml-linter.yml
vendored
2
.github/workflows/yaml-linter.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
cd RobustToolbox/
|
cd RobustToolbox/
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.100
|
dotnet-version: 6.0.100
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user