|
| 1 | +name: TLS GitHub Actions |
| 2 | +run-name: Publish TLS executable program 🚀 |
| 3 | +on: [push] |
| 4 | +env: |
| 5 | + Major_Version_Number: '1' |
| 6 | + Minor_Version_Number: '1' |
| 7 | + Build_Number: ${{ github.run_number }} |
| 8 | +jobs: |
| 9 | + TLS-GitHub-Actions: |
| 10 | + runs-on: windows-latest |
| 11 | + steps: |
| 12 | + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event. Commiter is ${{ github.actor }}." |
| 13 | + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" |
| 14 | + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." |
| 15 | + |
| 16 | + - name: Check out repository code |
| 17 | + uses: actions/checkout@v4 |
| 18 | + |
| 19 | + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." |
| 20 | + |
| 21 | + # Install the .NET Core workload |
| 22 | + - name: Install .NET Core |
| 23 | + uses: actions/setup-dotnet@v4 |
| 24 | + with: |
| 25 | + dotnet-version: 8.0.x |
| 26 | + |
| 27 | + # Restore the application to populate the obj folder with RuntimeIdentifiers |
| 28 | + - name: Restore the application |
| 29 | + run: dotnet workload restore |
| 30 | + |
| 31 | + - run: echo "🖥️ The workflow is now ready to publish application on the runner." |
| 32 | + |
| 33 | + # Build |
| 34 | + - name: Publish |
| 35 | + run: dotnet publish |
| 36 | + |
| 37 | + # Upload the TLS package |
| 38 | + - name: Upload build artifacts |
| 39 | + uses: actions/upload-artifact@v4 |
| 40 | + with: |
| 41 | + name: TLS ${{ env.Major_Version_Number }}.${{ env.Minor_Version_Number }}.${{ env.Build_Number }} |
| 42 | + path: ${{ github.workspace }}\TaikoLocalServer\bin\Release\net8.0\win-x64\publish |
| 43 | + include-hidden-files: true |
| 44 | + |
| 45 | + - run: echo "🍏 This job's status is ${{ job.status }}." |
0 commit comments