Skip to content

Commit

Permalink
[merge] Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Aug 18, 2024
2 parents 6943c26 + 1468d69 commit f5d7c39
Show file tree
Hide file tree
Showing 106 changed files with 2,817 additions and 1,387 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy Github Pages

on:
push:
branches: ["main", "dev/doc"]
workflow_dispatch:

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

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

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install Material for MkDocs
run: |
pip install mkdocs-material==9.5.31 mkdocs-minify-plugin pillow cairosvg
pip install git+https://github.com/kenyoni-software/kny-mkdocs@1.1.1
- name: Build Website
working-directory: doc/
run: mkdocs build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './doc/site/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,60 @@ jobs:
addon:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest

#environment: asset-library
strategy:
fail-fast: false
matrix:
config:
- {
id: "aspect_ratio_resize_container",
name: "AspectRatioResizeContainer",
asset-id: "2089",
}
- {
id: "custom_theme_overrides",
name: "Custom Theme Overrides",
asset-id: "2091",
}
- {
id: "git_sha_project_setting",
name: "Git SHA Project Setting",
asset-id: "1979",
}
- {
id: "glogging",
name: "GLogging",
asset-id: "no-deploy",
}
- {
id: "hide_private_properties",
name: "Hide Private Properties",
asset-id: "1989",
}
- {
id: "icon_explorer",
name: "Icon Explorer",
asset-id: "2511",
}
- {
id: "icons_patcher",
name: "Icons Patcher",
asset-id: "1980",
}
- {
id: "licenses",
name: "License Manager",
asset-id: "1969",
}
- {
id: "qr_code",
name: "QR Code",
asset-id: "2090",
}
- {
id: "texture_button_colored",
name: "TextureButtonColored",
asset-id: "2092",
}

steps:
Expand Down Expand Up @@ -102,13 +112,19 @@ jobs:
run: sleep 5s
shell: bash

- name: Release addon
- name: Deploy to GitHub Release
if: ${{ steps.checkTag.outputs.exists == 'false' }}
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
gh release create ${{ matrix.config.id }}-${{ steps.prepare-artifacts.outputs.version }} ./archives/* --title "${{ matrix.config.name }} ${{ steps.prepare-artifacts.outputs.version }}" --notes "${{ steps.prepare-artifacts.outputs.notes }}"
#- name: Deploy to Godot Asset Library
# if: ${{ matrix.config.asset-id != 'no-deploy' }}
# working-directory: publisher
# run: |
# go run . asset-library -b ../ -a ${{ matrix.config.id }} -u "${{ secrets.GD_ASSET_LIBRARY_USER }}" -p "${{ secrets.GD_ASSET_LIBRARY_PASSWORD }}" --asset-id "${{ matrix.config.asset-id }}"

combined-release:
name: Combined Release
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

addons/explore-editor-theme/
archives/
doc/.cache/
doc/site/
Loading

0 comments on commit f5d7c39

Please sign in to comment.