-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef0a1bf
commit febd8f5
Showing
1 changed file
with
78 additions
and
78 deletions.
There are no files selected for viewing
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,92 +1,92 @@ | ||
name: Update Wiki | ||
# name: Update Wiki | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master, jsondump ] | ||
paths: | ||
- '.github/workflows/update-wiki.yml' | ||
- 'Content.Shared/Chemistry/**.cs' | ||
- 'Content.Server/Chemistry/**.cs' | ||
- 'Content.Server/GuideGenerator/**.cs' | ||
- 'Content.Server/Corvax/GuideGenerator/**.cs' | ||
- 'Resources/Prototypes/Reagents/**.yml' | ||
- 'Resources/Prototypes/Chemistry/**.yml' | ||
- 'Resources/Prototypes/Recipes/Reactions/**.yml' | ||
- 'RobustToolbox/' | ||
# on: | ||
# workflow_dispatch: | ||
# push: | ||
# branches: [ master, jsondump ] | ||
# paths: | ||
# - '.github/workflows/update-wiki.yml' | ||
# - 'Content.Shared/Chemistry/**.cs' | ||
# - 'Content.Server/Chemistry/**.cs' | ||
# - 'Content.Server/GuideGenerator/**.cs' | ||
# - 'Content.Server/Corvax/GuideGenerator/**.cs' | ||
# - 'Resources/Prototypes/Reagents/**.yml' | ||
# - 'Resources/Prototypes/Chemistry/**.yml' | ||
# - 'Resources/Prototypes/Recipes/Reactions/**.yml' | ||
# - 'RobustToolbox/' | ||
|
||
jobs: | ||
update-wiki: | ||
name: Build and Publish JSON blobs to wiki | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# update-wiki: | ||
# name: Build and Publish JSON blobs to wiki | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Master | ||
uses: actions/[email protected] | ||
# steps: | ||
# - name: Checkout Master | ||
# uses: actions/[email protected] | ||
|
||
- name: Setup Submodule | ||
run: | | ||
git submodule update --init --recursive | ||
# - name: Setup Submodule | ||
# run: | | ||
# git submodule update --init --recursive | ||
|
||
- name: Pull Engine Updates | ||
uses: space-wizards/[email protected] | ||
# - name: Pull Engine Updates | ||
# uses: space-wizards/[email protected] | ||
|
||
- name: Update Engine Submodules | ||
run: | | ||
cd RobustToolbox/ | ||
git submodule update --init --recursive | ||
# - name: Update Engine Submodules | ||
# run: | | ||
# cd RobustToolbox/ | ||
# git submodule update --init --recursive | ||
|
||
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 7.0.x | ||
# - name: Setup .NET Core | ||
# uses: actions/[email protected] | ||
# with: | ||
# dotnet-version: 7.0.x | ||
|
||
- name: Install Dependencies | ||
run: dotnet restore | ||
# - name: Install Dependencies | ||
# run: dotnet restore | ||
|
||
- name: Build Project | ||
run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable /m | ||
# - name: Build Project | ||
# run: dotnet build --configuration Release --no-restore /p:WarningsAsErrors=nullable /m | ||
|
||
- name: Generate JSON blobs for prototypes | ||
run: dotnet ./bin/Content.Server/Content.Server.dll --cvar autogen.destination_file=prototypes.json | ||
continue-on-error: true | ||
# - name: Generate JSON blobs for prototypes | ||
# run: dotnet ./bin/Content.Server/Content.Server.dll --cvar autogen.destination_file=prototypes.json | ||
# continue-on-error: true | ||
|
||
- name: Upload chem_prototypes.json to wiki | ||
uses: jtmullen/[email protected] | ||
with: | ||
wiki_text_file: ./bin/Content.Server/data/chem_prototypes.json | ||
edit_summary: Update chem_prototypes.json via GitHub Actions | ||
page_name: "${{ secrets.WIKI_PAGE_ROOT }}/chem_prototypes.json" | ||
api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
username: ${{ secrets.WIKI_BOT_USER }} | ||
password: ${{ secrets.WIKI_BOT_PASS }} | ||
# - name: Upload chem_prototypes.json to wiki | ||
# uses: jtmullen/[email protected] | ||
# with: | ||
# wiki_text_file: ./bin/Content.Server/data/chem_prototypes.json | ||
# edit_summary: Update chem_prototypes.json via GitHub Actions | ||
# page_name: "${{ secrets.WIKI_PAGE_ROOT }}/chem_prototypes.json" | ||
# api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
# username: ${{ secrets.WIKI_BOT_USER }} | ||
# password: ${{ secrets.WIKI_BOT_PASS }} | ||
|
||
- name: Upload react_prototypes.json to wiki | ||
uses: jtmullen/[email protected] | ||
with: | ||
wiki_text_file: ./bin/Content.Server/data/react_prototypes.json | ||
edit_summary: Update react_prototypes.json via GitHub Actions | ||
page_name: "${{ secrets.WIKI_PAGE_ROOT }}/react_prototypes.json" | ||
api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
username: ${{ secrets.WIKI_BOT_USER }} | ||
password: ${{ secrets.WIKI_BOT_PASS }} | ||
# - name: Upload react_prototypes.json to wiki | ||
# uses: jtmullen/[email protected] | ||
# with: | ||
# wiki_text_file: ./bin/Content.Server/data/react_prototypes.json | ||
# edit_summary: Update react_prototypes.json via GitHub Actions | ||
# page_name: "${{ secrets.WIKI_PAGE_ROOT }}/react_prototypes.json" | ||
# api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
# username: ${{ secrets.WIKI_BOT_USER }} | ||
# password: ${{ secrets.WIKI_BOT_PASS }} | ||
|
||
- name: Upload entity_prototypes.json to wiki | ||
uses: jtmullen/[email protected] | ||
with: | ||
wiki_text_file: ./bin/Content.Server/data/entity_prototypes.json | ||
edit_summary: Update entity_prototypes.json via GitHub Actions | ||
page_name: "${{ secrets.WIKI_PAGE_ROOT }}/entity_prototypes.json" | ||
api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
username: ${{ secrets.WIKI_BOT_USER }} | ||
password: ${{ secrets.WIKI_BOT_PASS }} | ||
# - name: Upload entity_prototypes.json to wiki | ||
# uses: jtmullen/[email protected] | ||
# with: | ||
# wiki_text_file: ./bin/Content.Server/data/entity_prototypes.json | ||
# edit_summary: Update entity_prototypes.json via GitHub Actions | ||
# page_name: "${{ secrets.WIKI_PAGE_ROOT }}/entity_prototypes.json" | ||
# api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
# username: ${{ secrets.WIKI_BOT_USER }} | ||
# password: ${{ secrets.WIKI_BOT_PASS }} | ||
|
||
- name: Upload mealrecipes_prototypes.json to wiki | ||
uses: jtmullen/[email protected] | ||
with: | ||
wiki_text_file: ./bin/Content.Server/data/mealrecipes_prototypes.json | ||
edit_summary: Update mealrecipes_prototypes.json via GitHub Actions | ||
page_name: "${{ secrets.WIKI_PAGE_ROOT }}/mealrecipes_prototypes.json" | ||
api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
username: ${{ secrets.WIKI_BOT_USER }} | ||
password: ${{ secrets.WIKI_BOT_PASS }} | ||
# - name: Upload mealrecipes_prototypes.json to wiki | ||
# uses: jtmullen/[email protected] | ||
# with: | ||
# wiki_text_file: ./bin/Content.Server/data/mealrecipes_prototypes.json | ||
# edit_summary: Update mealrecipes_prototypes.json via GitHub Actions | ||
# page_name: "${{ secrets.WIKI_PAGE_ROOT }}/mealrecipes_prototypes.json" | ||
# api_url: ${{ secrets.WIKI_ROOT_URL }}/api.php | ||
# username: ${{ secrets.WIKI_BOT_USER }} | ||
# password: ${{ secrets.WIKI_BOT_PASS }} |