diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..0cab846 --- /dev/null +++ b/.github/workflows/pages.yml @@ -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 /files/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 diff --git a/_site/index.html b/_site/index.html new file mode 100644 index 0000000..236ab66 --- /dev/null +++ b/_site/index.html @@ -0,0 +1,15 @@ + + + + Hossein Naderi's dactyl keyboard keymap + + +
+

Firmware

+ Download latest version
+ See releases here +

Keymap

+ +
+ +