GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — stack-chan/.github/workflows/schematics.yml at develop · stack-chan/stack-chan 93 lines (88 loc) · 2.69 KB / Copy pathschematics.ymlFile metadata and controls93 lines (88 loc) · 2.69 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 name: Generate Stack-chan Schematics Files on: push: branches: - develop - main paths: - '**/*.kicad_sch' - '**/*.kicad_pcb' - 'schematics/**/*.kibot.yaml' - '.github/workflows/schematics.yml' pull_request: branches: - develop - main paths: - '**/*.kicad_sch' - '**/*.kicad_pcb' - 'schematics/**/*.kibot.yaml' - '.github/workflows/schematics.yml' permissions: contents: read concurrency: group: schematics-${{ github.ref }} cancel-in-progress: true jobs: build-schematics: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: INTI-CMNB/KiBot@v2_k7 with: config: schematics/m5-pantilt/m5-pantilt.kibot.yaml schema: schematics/m5-pantilt/m5-pantilt.kicad_sch board: schematics/m5-pantilt/m5-pantilt.kicad_pcb dir: generated - name: Upload results uses: actions/upload-artifact@v7 with: name: schematics-files path: generated deploy-schematics: needs: build-schematics if: >- github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main') runs-on: ubuntu-latest env: PAGES_CHANNEL: ${{ github.ref == 'refs/heads/main' && 'release' || 'develop' }} PAGES_DIRECTORY: ${{ github.ref == 'refs/heads/main' && 'web' || 'develop/web' }} concurrency: group: gh-pages-deploy cancel-in-progress: false permissions: contents: write steps: - name: Checkout Pages branch uses: actions/checkout@v7 with: ref: gh-pages - name: Download schematics files uses: actions/download-artifact@v8 with: name: schematics-files path: ./schematics-files - name: Update schematics files run: | set -euo pipefail if [ -z "$(find ./schematics-files -mindepth 1 -print -quit)" ]; then echo "Schematics artifact is empty" exit 1 fi target_directory="./$PAGES_DIRECTORY/schematics" rm -rf "$target_directory" mkdir -p "$target_directory" cp -R ./schematics-files/. "$target_directory/" - name: Commit schematics update run: | set -euo pipefail git config user.name 'GitHub Action' git config user.email '[email protected]' git add "./$PAGES_DIRECTORY/schematics" if git diff --cached --quiet; then echo "No schematics changes to deploy" exit 0 fi git commit -m "Deploy $PAGES_CHANNEL schematics files from ${{ github.sha }}" git push origin HEAD:gh-pages |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |