Skip to content

Commit

Permalink
Fix badges and CI-less deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tmshader committed Dec 5, 2024
1 parent 8a9f407 commit f2598a6
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 1 deletion.
97 changes: 97 additions & 0 deletions .github/workflows/deploy-without-kibot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: "Deploy without KiBot"

on:
workflow_dispatch:
inputs:
run_id:
required: true
type: number

permissions:
contents: read
pages: write
id-token: write
actions: read

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: .

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: artsey_ergo
path: output
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.run_id }}

- name: Download artifact
uses: actions/download-artifact@v4
with:
path: output
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.run_id }}

- name: Move artifact files
run: |
ls -l
ls -l output
ls -l output/render_angled
ls -l output/report
find output/report
mkdir export
mkdir html
mkdir images
mkdir documents
mv output/drc_validation.md ./
mv output/erc_validation.md ./
mv output/step/Step/artsey_ergo-3D.step ./artsey_ergo-3D.step
mv output/report/report/artsey_ergo-report.txt ./artsey_ergo-report.md
mv output/render_top/artsey_ergo-3D_blender_top.png images/artsey_ergo-3D_blender_top.png
mv output/render_bottom/artsey_ergo-3D_blender_top.png images/artsey_ergo-3D_blender_bottom.png
mv output/render_angled/artsey_ergo-3D_blender_top.png images/artsey_ergo-3D_blender_angled.png
mv output/report/IBOM/artsey_ergo-ibom.html export/artsey_ergo-ibom.html
mv output/report/BOM/artsey_ergo_bom.html export/artsey_ergo-bom.html
mv output/report/Schematic/artsey_ergo-schematic-default.pdf documents/artsey_ergo-schematic-default.pdf
mv output/report/Schematic/artsey_ergo-schematic-mono.pdf documents/artsey_ergo-schematic-mono.pdf
mv output/report/JLCPCB/artsey_ergo-JLCPCB.zip export/artsey_ergo-JLCPCB.zip
mv output/report/JLCPCB/BOM/artsey_ergo_bom_jlc.csv export/artsey_ergo_bom_jlc.csv
mv output/report/JLCPCB/PickAndPlace/artsey_ergo_cpl_jlc.csv export/artsey_ergo_cpl_jlc.csv
cp export/artsey_ergo-JLCPCB.zip export/artsey_ergo-Eurocircuits.zip
rm -rf output
ls -l
ls -l export
find .
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
future: true

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ layout: home
![Image]({{ "/images/artsey_ergo-3D_blender_angled.png" | absolute_url | append: cacheBust }})

[![ZMK Build](https://github.com/tmshader/artsey-ergo/actions/workflows/build.yml/badge.svg)](https://github.com/tmshader/artsey-ergo/actions/workflows/build.yml)
[![Pages Build](https://github.com/tmshader/artsey-ergo/actions/workflows/build.yml/badge.svg)](https://github.com/tmshader/artsey-ergo/actions/workflows/build.yml)

[![Pages Build](https://github.com/tmshader/artsey-ergo/actions/workflows/kibot.yml/badge.svg)](https://github.com/tmshader/artsey-ergo/actions/workflows/kibot.yml)

![GitHub last commit](https://img.shields.io/github/last-commit/tmshader/artsey-ergo?link=https%3A%2F%2Fgithub.com%2Ftmshader%2Fartsey-ergo)

Expand Down

0 comments on commit f2598a6

Please sign in to comment.