diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac16c49..3161e25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,21 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - uses: stepchowfun/toast/.github/actions/toast@main with: - tasks: build check + tasks: build check release docker_repo: stephanmisc/toast read_remote_cache: ${{ github.event_name == 'push' }} write_remote_cache: ${{ github.event_name == 'push' }} + - uses: actions/configure-pages@v3 + - uses: actions/upload-pages-artifact@v1 + deploy_github_pages: + name: Deploy to GitHub pages + needs: ci + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + permissions: + pages: write + id-token: write + steps: + - uses: actions/deploy-pages@v1 diff --git a/.gitignore b/.gitignore index 1cd8faf..0b18067 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # [tag:gitignore] Keep this in sync with [ref:excluded_input_paths]. +/_site/ /dist/ /generated/ /hashpass.zip diff --git a/toast.yml b/toast.yml index 3314441..0b3ba60 100644 --- a/toast.yml +++ b/toast.yml @@ -63,6 +63,7 @@ tasks: - .git # [tag:excluded_input_paths] Keep this in sync with [ref:gitignore]. + - _site/ - dist/ - generated/ - hashpass.zip @@ -105,9 +106,20 @@ tasks: - index.html - manifest.json output_paths: + - _site - hashpass.zip command: | - # Create a ZIP file containing the relevant files. + # Create a directory containing the relevant files for the website. + mkdir _site + cp -R \ + HEROICONS-LICENSE.md \ + LICENSE.md \ + dist \ + images \ + index.html \ + _site + + # Create a ZIP file containing the relevant files for the Chrome extension. zip -r hashpass.zip \ HEROICONS-LICENSE.md \ LICENSE.md \ @@ -118,7 +130,7 @@ tasks: src # Inform the user of where the artifact is. - echo 'Generated `hashpass.zip`.' + echo 'Generated `_site` and `hashpass.zip`.' format: description: Format the source code.