Skip to content

Commit

Permalink
Further flesh out the GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Wintereise committed Jul 28, 2022
1 parent 4ba932a commit 079fc97
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/eleventy_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
confirmation:
description: 'Are you sure you want to run the publish process manually?'
required: false
type: boolean
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -15,12 +21,13 @@ jobs:
- run: npm ci
- run: npm run publish
# These provide handy aliases to some pages
- run: ln -s _public/handbook/introduction.html _public/handbook/index.html
- run: ln -s _public/reference/controllers.html _public/reference/index.html
- run: ln -s _public/reference/values.html _public/reference/data-maps.html
- run: cp CNAME _public
- run: ln -s ./_public/handbook/introduction.html ./_public/handbook/index.html
- run: ln -s ./_public/reference/controllers.html ./_public/reference/index.html
- run: ln -s ./_public/reference/values.html ./_public/reference/data-maps.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_public
cname: stimulus.hotwired.dev
keep_files: true

0 comments on commit 079fc97

Please sign in to comment.