publish.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: Publish
  2. concurrency:
  3. group: publish
  4. on:
  5. workflow_dispatch:
  6. # schedule:
  7. # - cron: '0 10 * * *'
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Install dependencies
  13. run: sudo apt-get install -y python3-paramiko python3-lxml
  14. - uses: actions/checkout@v3.6.0
  15. with:
  16. submodules: 'recursive'
  17. - name: Setup .NET Core
  18. uses: actions/setup-dotnet@v3.2.0
  19. with:
  20. dotnet-version: 9.0.x
  21. - name: Get Engine Tag
  22. run: |
  23. cd RobustToolbox
  24. git fetch --depth=1
  25. - name: Install dependencies
  26. run: dotnet restore
  27. - name: Build Packaging
  28. run: dotnet build Content.Packaging --configuration Release --no-restore /m
  29. - name: Package server
  30. run: dotnet run --project Content.Packaging server --platform win-x64 --platform linux-x64 --platform osx-x64 --platform linux-arm64
  31. - name: Package client
  32. run: dotnet run --project Content.Packaging client --no-wipe-release
  33. - name: Publish version
  34. run: Tools/publish_multi_request.py
  35. env:
  36. PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
  37. GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }}
  38. - name: Publish changelog (Discord)
  39. run: Tools/actions_changelogs_since_last_run.py
  40. env:
  41. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  42. DISCORD_WEBHOOK_URL: ${{ secrets.CHANGELOG_DISCORD_WEBHOOK }}
  43. - name: Publish changelog (RSS)
  44. run: Tools/actions_changelog_rss.py
  45. env:
  46. CHANGELOG_RSS_KEY: ${{ secrets.CHANGELOG_RSS_KEY }}