From 930813e6419a8475d2ed16188ea6304783be6b67 Mon Sep 17 00:00:00 2001 From: Hossein Naderi Date: Wed, 10 Apr 2024 13:23:39 +0330 Subject: [PATCH] Added github page --- .github/workflows/pages.yml | 35 +++++++++++++++++++++++++++++++++++ _site/index.html | 15 +++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/pages.yml create mode 100644 _site/index.html 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

+ +
+ +