Publish #837
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2021 Paul | |
| # SPDX-FileCopyrightText: 2022 0x6273 | |
| # SPDX-FileCopyrightText: 2022 Paul Ritter | |
| # SPDX-FileCopyrightText: 2022 Vera Aguilera Puerto | |
| # SPDX-FileCopyrightText: 2023 DrSmugleaf | |
| # SPDX-FileCopyrightText: 2023 metalgearsloth | |
| # SPDX-FileCopyrightText: 2024 DEATHB4DEFEAT | |
| # SPDX-FileCopyrightText: 2024 Debug | |
| # SPDX-FileCopyrightText: 2024 Fansana | |
| # SPDX-FileCopyrightText: 2024 FoxxoTrystan | |
| # SPDX-FileCopyrightText: 2024 Matt | |
| # SPDX-FileCopyrightText: 2024 Pieter-Jan Briers | |
| # SPDX-FileCopyrightText: 2025 sleepyyapril | |
| # | |
| # SPDX-License-Identifier: AGPL-3.0-or-later AND MIT | |
| name: Publish | |
| concurrency: | |
| group: publish | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 6 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install dependencies | |
| run: sudo apt-get install -y python3-paramiko python3-lxml | |
| - uses: actions/[email protected] | |
| with: | |
| ref: master | |
| submodules: 'recursive' | |
| - name: Setup .NET Core | |
| uses: actions/[email protected] | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Get Engine Tag | |
| run: | | |
| cd RobustToolbox | |
| git fetch --depth=1 | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build Packaging | |
| run: dotnet build Content.Packaging --configuration Release --no-restore /m | |
| - name: Package server | |
| run: dotnet run --project Content.Packaging server --platform win-x64 --platform linux-x64 --platform osx-x64 --platform linux-arm64 | |
| - name: Package client | |
| run: dotnet run --project Content.Packaging client --no-wipe-release | |
| - name: Publish version | |
| run: python3 Tools/publish_multi_request_new.py | |
| env: | |
| PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }} | |
| ROBUST_CDN_URL: ${{ vars.ROBUST_CDN_URL }} | |
| FORK_ID: ${{ vars.FORK_ID }} | |
| # - name: Publish changelog (Discord) | |
| # run: Tools/actions_changelogs_since_last_run.py | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # CHANGELOG_DIR: ${{ vars.CHANGELOG_DIR }} | |
| # DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }} | |
| - name: Publish changelog (RSS) | |
| run: python3 Tools/actions_changelog_rss.py | |
| env: | |
| CHANGELOG_RSS_KEY: ${{ secrets.CHANGELOG_RSS_KEY }} |