You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/.github/workflows/build.yml

37 lines
882 B
YAML

name: Build
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: cd ui && yarn && yarn build:production && cd ..
- uses: actions/upload-artifact@v1
with:
name: uibuild
path: public
- run: |
yarn
yarn build:production
- uses: actions/upload-artifact@v1
with:
name: app.js
path: .build/app.js
- uses: actions/upload-artifact@v1
with:
name: builtin.hydro
path: .build/builtin.hydro
- uses: elgohr/Publish-Docker-Github-Action@master
with:
name: hydrooj/hydro:alpine
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile