Skip to content

build

build #1744

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "05 5 * * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
- name: build
run: |
build/build.sh
- name: GitHub Pages
if: success() && github.ref == 'refs/heads/main'
uses: crazy-max/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
build_dir: target/out
- name: Log in to Docker Hub
if: success() && github.ref == 'refs/heads/main'
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push
if: success() && github.ref == 'refs/heads/main'
run: |
docker push curs/asciidoctor-od:latest