mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
测试自动构建
This commit is contained in:
1 parent
06f1b5bc62
commit
9cb68397b9
9 files changed
+127
-13
No files matched your search
@@ -0,0 +1,53 @@
|
||||
name: DockerBuild
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node_version: '13.x'
|
||||
- run: |
|
||||
yarn
|
||||
yarn add webpack webpack-cli -D
|
||||
yarn build
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: hydro
|
||||
path: dist
|
||||
- run: |
|
||||
cd ui
|
||||
yarn
|
||||
yarn add webpack webpack-cli -D
|
||||
yarn build
|
||||
cd ..
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: .uibuild
|
||||
path: .uibuild
|
||||
- run: |
|
||||
yarn add pkg -D
|
||||
yarn run pack
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Hydro_linux_amd64
|
||||
path: hydro-linux
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Hydro_macos_amd64
|
||||
path: hydro-macos
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Hydro_win_amd64.exe
|
||||
path: hydro-win.exe
|
||||
- uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: hydrooj/hydro:alpine
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
dockerfile: Dockerfile
|
||||
Reference in new issue
Block a user