Skip to content

add commands and worrkflow for github pages #147

add commands and worrkflow for github pages

add commands and worrkflow for github pages #147

name: Deploy Documentation
# on:
# push:
# branches:
# - main
# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: '3.1.2'
# - uses: actions/setup-java@v3
# with:
# distribution: 'adopt-openj9'
# java-version: '17'
# - run: sudo apt-get update && sudo apt-get install -y graphviz
# - run: gem install middleman
# - run: bundle install
# - run: git worktree add -B gh-pages build origin/gh-pages
# - run: make build
# - run: |
# git add .
# git config --global user.name "digital-land-bot"
# git config --global user.email "digitalland@communities.gov.uk"
# git commit -m "Publishing changes"
# git push
# working-directory: build
name: deploy

Check failure on line 35 in .github/workflows/deploy-documentation.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-documentation.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
on:
push:
branches:
- main
# Set permissions of GITHUB_TOKEN
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: npm ci
- name: Build with Eleventy
run: make build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4