Skip to content

Commit

Permalink
Merge pull request #182 from Twinki14/gh-pages
Browse files Browse the repository at this point in the history
Add initial GitHub pages
  • Loading branch information
thijsvanloef authored Jan 28, 2024
2 parents 022b958 + 6e055e4 commit 9527a08
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Pages

on:
push:
branches: ["gh-pages"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "."

- name: Deploy - Pages
id: deployment
uses: actions/deploy-pages@v4
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<head> </head>
<body>
Index <a href="index.yaml">index.yaml</a>
</body>
</html>

0 comments on commit 9527a08

Please sign in to comment.