Skip to content

Commit

Permalink
Added github page
Browse files Browse the repository at this point in the history
  • Loading branch information
hnaderi committed Apr 10, 2024
1 parent 70099dd commit 6e43c2a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy page

on:
push:
workflow_dispatch:

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

jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/hnaderi/keymap-drawer:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build keymap image
run: |
keymap parse -q qmk-config.json > keymap.yaml
keymap draw keymap.yaml > _site/keymap.svg
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
15 changes: 15 additions & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Hossein Naderi's dactyl keyboard keymap</title>
</head>
<body>
<center>
<h2>Firmware</h2>
<a href="https://github.com/hnaderi/dactyl-keyboard/releases/latest/download/handwired_dactyl_manuform_5x7_hnaderi.hex">Download latest version</a><br />
<a href="https://github.com/hnaderi/dactyl-keyboard/releases/">See releases here</a>
<h2><a href="keymap.svg">Keymap</a></h2>
<image src="keymap.svg"></image>
</center>
</body>
</html>

0 comments on commit 6e43c2a

Please sign in to comment.