Nightly Prerelease #597
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
| # This workflow will build, publish, and update the "nightly" tag of Helion. | |
| # GitHub is supposed to use UTC time; 7:35 UTC is 2:35 AM EST | |
| name: Nightly Prerelease | |
| on: | |
| schedule: | |
| - cron: '35 7 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| buildRelease: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore | |
| - name: Dotnet Publish Linux | |
| run: dotnet publish -c Release -r linux-x64 Client/Client.csproj | |
| - name: Dotnet Publish Windows | |
| run: dotnet publish -c Release -r win-x64 Client/Client.csproj | |
| - name: Dotnet Publish Linux Self-Contained | |
| run: dotnet publish -c Release -r linux-x64 -p:SelfContainedRelease=true Client/Client.csproj | |
| - name: Dotnet Publish Windows Self-Contained | |
| run: dotnet publish -c Release -r win-x64 -p:SelfContainedRelease=true Client/Client.csproj | |
| - name: Install zip | |
| uses: montudor/action-zip@v1 | |
| - name: Zip Linux | |
| run: zip -r ../../Helion-${{ github.ref_name }}-linux-x64.zip * | |
| working-directory: Publish/linux-x64 | |
| - name: Zip Linux Self-Contained | |
| run: zip -r ../../Helion-${{ github.ref_name }}-linux-x64_SelfContained.zip * | |
| working-directory: Publish/linux-x64_SelfContained | |
| - name: Zip Windows | |
| run: zip -r ../../Helion-${{ github.ref_name }}-win-x64.zip * | |
| working-directory: Publish/win-x64 | |
| - name: Zip Windows Self-Contained | |
| run: zip -r ../../Helion-${{ github.ref_name }}-win-x64_SelfContained.zip * | |
| working-directory: Publish/win-x64_SelfContained | |
| - name: Update nightly release | |
| uses: pyTooling/Actions/releaser@r0 | |
| with: | |
| tag: nightly | |
| rm: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| files: '*.zip' |