diff --git a/.github/workflows/eleventy_publish.yml b/.github/workflows/eleventy_publish.yml index f29b79f..e697972 100644 --- a/.github/workflows/eleventy_publish.yml +++ b/.github/workflows/eleventy_publish.yml @@ -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 @@ -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