Skip to content

Commit

Permalink
Deploy to current repository
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Nov 24, 2023
1 parent c972092 commit 0c9b25e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on:
# tab for your repo to see this one running (the gh-pages deploy will also
# only show up there).
workflow_run:
workflows: [ "Release" ]
workflows: ["Release"]
types:
- completed

Expand All @@ -68,17 +68,17 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/oranda/releases/latest/download/oranda-installer.sh | sh
oranda build
- name: Prepare HTML for link checking
# untitaker/hyperlink supports no site prefixes, move entire site into
# a subfolder
run: mkdir /tmp/public/ && cp -R public /tmp/public/oranda
run: mkdir /tmp/dist/ && cp -R dist /tmp/dist/oranda

- name: Check HTML for broken internal links
uses: untitaker/[email protected]
with:
args: /tmp/public/
args: /tmp/dist/

# Deploy to our gh-pages branch (creating it if it doesn't exist)
# the "public" dir that oranda made above will become the root dir
# of this branch.
Expand All @@ -91,9 +91,8 @@ jobs:
# ONLY if we're on main (so no PRs or feature branches allowed!)
if: ${{ github.ref == 'refs/heads/main' }}
with:
repository-name: "kitsune-soc/kitsune-soc.github.io"
branch: gh-pages
# Gotta tell the action where to find oranda's output
folder: public
folder: dist
token: ${{ secrets.GITHUB_TOKEN }}
single-commit: true
single-commit: true

0 comments on commit 0c9b25e

Please sign in to comment.