Skip to content

Commit

Permalink
Update preview-dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kklldog authored Mar 30, 2022
1 parent 7b3d483 commit e5910c2
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/preview-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,12 @@ jobs:
matrix:
node-version: [12.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@v2
with:
name: agileconfig-ui
path: AgileConfig.Server.UI/react-ui-antd/dist/
build-dotnet:
needs: build-reactapp
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
dotnet-version: 6.0.100
- name: Install dependencies
run: dotnet restore
- name: Build
Expand All @@ -49,7 +32,18 @@ jobs:
with:
name: agileconfig-ui
path: AgileConfig.Server.Apisite/wwwroot/ui
- name: Push to Docker Hub
- name: build server release xxx
run: dotnet publish AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj -c Release
- uses: vimtor/action-zip@v1
with:
files: AgileConfig.Server.Apisite/bin/Release/net6.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 preview -xxx
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_HUB_NAME }}
Expand Down

0 comments on commit e5910c2

Please sign in to comment.