Skip to content

Commit

Permalink
Add image rendering and deployment workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubAndrysek committed Apr 11, 2024
1 parent 520824f commit 7ae9d26
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
File renamed without changes

0 comments on commit 7ae9d26

Please sign in to comment.