Skip to content

Commit

Permalink
Set up GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchowfun committed Jan 5, 2024
1 parent 64227e8 commit fd67cd1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# [tag:gitignore] Keep this in sync with [ref:excluded_input_paths].
/_site/
/dist/
/generated/
/hashpass.zip
Expand Down
16 changes: 14 additions & 2 deletions toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ tasks:
- .git

# [tag:excluded_input_paths] Keep this in sync with [ref:gitignore].
- _site/
- dist/
- generated/
- hashpass.zip
Expand Down Expand Up @@ -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 \
Expand All @@ -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.
Expand Down

0 comments on commit fd67cd1

Please sign in to comment.