use sdk9 as build sdk #81
Workflow file for this run
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: package workflow | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.yml' | |
| tags: | |
| - 'v-*' | |
| workflow_dispatch: | |
| jobs: | |
| build-reactapp: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src/AgileConfig.Server.UI/react-ui-antd | |
| strategy: | |
| matrix: | |
| node-version: [16.x] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install | |
| - run: npm run build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: agileconfig-ui | |
| path: src/AgileConfig.Server.UI/react-ui-antd/dist/ | |
| build-dotnet: | |
| needs: build-reactapp | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup .net | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: agileconfig-ui | |
| path: src/AgileConfig.Server.Apisite/wwwroot/ui | |
| - name: build server release xxx | |
| run: dotnet publish src/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj -c Release | |
| - uses: vimtor/action-zip@v1 | |
| with: | |
| files: src/AgileConfig.Server.Apisite/bin/Release/net8.0/publish/ | |
| dest: agileconfig_server_deploy.zip | |
| - name: create release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: agileconfig_server_deploy.zip | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Push to Docker hub release -xxx | |
| uses: docker/build-push-action@v1 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_NAME }} | |
| password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| repository: kklldog/agile_config | |
| tag_with_ref: true |