mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-19 05:22:02 +08:00
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: preview ci workflow
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- '**/*.yml'
|
|
tags:
|
|
- 'preview-*'
|
|
|
|
jobs:
|
|
build-reactapp:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: AgileConfig.Server.UI/react-ui-antd
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 6.0.100
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
name: agileconfig-ui
|
|
path: AgileConfig.Server.Apisite/wwwroot/ui
|
|
- 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 }}
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
repository: kklldog/agile_config
|
|
tag_with_ref: true
|