-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-slim | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |