Upgrade to Aspire 13 #57
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: Aspire Publish Pipeline | |
| on: | |
| push: | |
| branches: ['*'] # Trigger on any branch | |
| pull_request: | |
| branches: ['*'] # Trigger on any branch | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '10.x' | |
| - name: Install Aspire CLI | |
| run: dotnet tool install --global aspire.cli | |
| - name: Log in to GitHub Container Registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Push to GitHub Container Registry | |
| run: aspire do push-gh | |
| env: | |
| GHCR_REPO: ghcr.io/${{ github.repository_owner }} | |
| TAG_SUFFIX: ${{ github.run_number }} |