Merge pull request #33 from CS2Surf/dependabot/github_actions/dev/all… #155
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
| name: .NET Build | |
| on: | |
| push: | |
| branches: [ "main", "dev" ] | |
| pull_request: | |
| branches: [ "main", "dev" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout for the current repo (plugin) into subfolder ./SurfTimer.Plugin | |
| - name: Checkout Plugin repo into subfolder | |
| uses: actions/checkout@v6 | |
| with: | |
| path: SurfTimer.Plugin | |
| # Checkout for SurfTimer.Shared as a "sibling" folder (NOT a submodule) | |
| - name: Checkout Shared repo (sibling folder) | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: tslashd/SurfTimer.Shared | |
| path: SurfTimer.Shared | |
| # If private, add PAT: | |
| # token: ${{ secrets.SHARED_REPO_PAT }} | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore | |
| run: dotnet restore SurfTimer.Plugin/src/SurfTimer.Plugin.csproj | |
| - name: Build | |
| run: dotnet build SurfTimer.Plugin/src/SurfTimer.Plugin.csproj -c Release --no-restore | |
| - name: Publish | |
| run: dotnet publish SurfTimer.Plugin/src/SurfTimer.Plugin.csproj -c Release -o out --no-restore | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: SurfTimer.Plugin | |
| path: out |