diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml new file mode 100644 index 00000000..7373aa55 --- /dev/null +++ b/.github/workflows/images.yaml @@ -0,0 +1,44 @@ +name: images +on: + push: +jobs: + render-images: + name: render-images + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: render pcb images + uses: linalinn/kicad-render@main + with: + pcb_file: m2sdr.kicad_pcb + output_path: ${{ github.workspace }}/images + + - name: Setup Pages + if: github.ref == 'refs/heads/master' + uses: actions/configure-pages@v3 + + - name: Upload Artifact + if: github.ref == 'refs/heads/master' + uses: actions/upload-pages-artifact@v1 + with: + path: "images" + + deploy-pages: + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + needs: render-images + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file diff --git a/README.md b/README.md index df780731..ad36f16f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Želvička -![](img/bitmapa.svg) +![](images/bitmapa.svg) + +![top](https://roboticsbrno.github.io/Zelvicka/top.png) +![bottom](https://roboticsbrno.github.io/Zelvicka/bottom.png) ## elektro * 1x 18650 ve slotu @@ -11,7 +14,7 @@ * vypínač před stepupy (mechanický) * 2x H mosty, motorové výstupy (+ enkodér vstupy) * 8x senzory jízdy po čáře (viz obrázek) -* 8x LEDky + konektor +* 8x LEDky + konektor * 1x servo konektor * pípák * nx kde n € N && n <= 5 User tlačítko, Reset tlačítko, Boot tlačítko diff --git a/img/bitmapa.svg b/images/bitmapa.svg similarity index 100% rename from img/bitmapa.svg rename to images/bitmapa.svg