Skip to content

Commit

Permalink
Evgencheg patch 8 (#351)
Browse files Browse the repository at this point in the history
* Update publish-lostparadise.yml

* Update publish-lostparadise.yml

* Update publish_multi_request.py
  • Loading branch information
Evgencheg authored Dec 21, 2024
1 parent bdc49d2 commit 3fa2a42
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/publish-lostparadise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v3.6.0
with:
submodules: 'recursive'

Expand All @@ -24,8 +24,13 @@ jobs:
mv Secrets/_PrivateServer Content.Server/_PrivateServer
mv Secrets/_PrivateClient Content.Client/_PrivateClient
- name: Install dependencies
run: sudo apt-get install -y python3-paramiko python3-lxml

- name: Setup .NET Core
uses: actions/[email protected]
uses: actions/[email protected]
with:
dotnet-version: 8.0.x

- name: Get Engine Tag
run: |
Expand All @@ -39,29 +44,19 @@ jobs:
run: dotnet build Content.Packaging --configuration Release --no-restore /m

- name: Package server
run: dotnet run --project Content.Packaging server --platform linux-x64 --platform win-x64
run: dotnet run --project Content.Packaging server --platform win-x64 --platform linux-x64

- name: Package client
run: dotnet run --project Content.Packaging client --no-wipe-release

- name: Upload build artifact
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
name: build
path: release/*.zip
compression-level: 0
retention-days: 0

- name: Publish version
run: Tools/publish_github_artifact.py
run: Tools/publish_multi_request.py
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
ARTIFACT_ID: ${{ steps.artifact-upload-step.outputs.artifact-id }}
GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }}

- uses: geekyeggo/delete-artifact@v5
if: always()
with:
name: build
- name: Publish changelog (Discord)
run: Tools/actions_changelogs_since_last_run.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }}
4 changes: 2 additions & 2 deletions Tools/publish_multi_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# CONFIGURATION PARAMETERS
# Forks should change these to publish to their own infrastructure.
#
ROBUST_CDN_URL = "https://cdn.simplestation.org/"
FORK_ID = "einstein-engines"
ROBUST_CDN_URL = "https://wiki.lost-paradise.space/cdn/"
FORK_ID = "LPP"

def main():
session = requests.Session()
Expand Down

0 comments on commit 3fa2a42

Please sign in to comment.