Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy Script Gallery

on:
push:
branches: [main]
paths:
- 'ASSETS/**'
- 'scripts.json'
- 'tools/generate_site.py'
- '.github/workflows/gh-pages.yml'
pull_request:
paths:
- 'ASSETS/**'
- 'scripts.json'
- 'tools/generate_site.py'
- '.github/workflows/gh-pages.yml'
workflow_dispatch:

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

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.1.0
Comment thread
pfeerick marked this conversation as resolved.
- name: Generate site
run: uv run tools/generate_site.py --scripts-json scripts.json --assets-dir ASSETS --output-dir site
- name: Upload Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: ./site
- name: Upload PR preview artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v7
with:
name: site-preview-pr-${{ github.event.pull_request.number }}
path: ./site

deploy:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
.DS_Store
site/

# Python
__pycache__/
*.py[cod]
*$py.class

# Python virtual environments
.venv/
venv/
env/
ENV/
Binary file added ASSETS/edgetx-goodies/screenshot-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ASSETS/edgetx-goodies/screenshot-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ASSETS/edgetx-goodies/screenshot-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ASSETS/edgetx-goodies/screenshot-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion scripts.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@
"ASSETS/edgetx-goodies/screenshot-1.png",
"ASSETS/edgetx-goodies/screenshot-3.png",
"ASSETS/edgetx-goodies/screenshot-5.png",
"https://github.com/MadMonkey87/EdgeTX-Goodies/raw/main/SCREENSHOTS/screenshot_tx16s_22-08-09_19-54-08.png"
"ASSETS/edgetx-goodies/screenshot-6.png",
"ASSETS/edgetx-goodies/screenshot-7.png",
"ASSETS/edgetx-goodies/screenshot-8.png"
],
"tags": [
"widget",
Expand Down
627 changes: 627 additions & 0 deletions tools/generate_site.py

Large diffs are not rendered by default.

Loading