chore(csproj): 🔧 optimize AOT and trimming settings #53
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: Publish Container | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| release: | |
| types: [ created ] | |
| workflow_run: | |
| workflows: ["Extract Protos"] | |
| types: | |
| - completed | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| packages: write | |
| concurrency: | |
| group: publish-container-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| - name: Restore | |
| run: dotnet restore | |
| - name: Login to GitHub Container Registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin | |
| - name: Publish container | |
| run: dotnet publish src/EcoFlow.Mqtt.Api -c Release /t:PublishContainer | |
| env: | |
| ContainerRegistry: ghcr.io | |
| ContainerRepository: caunt/ecoflow-mqtt-api | |
| ContainerPort: 8080 |