Skip to content

github: only update github pages on pushes to main #33

github: only update github pages on pushes to main

github: only update github pages on pushes to main #33

Workflow file for this run

name: Docker Image CI
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
deploy:
# why can't this by nginx, like my docker images?
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup docker buildx
uses: docker/setup-buildx-action@v1
- name: Build AlexCalc static HTML via docker
run: |
docker build \
--build-arg ALEXCALC_BUILD_TYPE_LABEL=github-pages \
-t alexcalc_html \
-f Dockerfile \
--target=export_output \
--output=./public \
.
on:

Check failure on line 38 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup docker buildx
uses: docker/setup-buildx-action@v1
- name: Build AlexCalc static HTML via docker
run: |
docker build \
--build-arg ALEXCALC_BUILD_TYPE_LABEL=github-pages \
-t alexcalc_html \
-f Dockerfile \
--target=export_output \
--output=./public \
.
- name: Deploy built HTML to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
destination_dir: docs