mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
...
This commit is contained in:
parent
ca459f6b65
commit
4462391daa
BIN
.github/workflows.zip
vendored
BIN
.github/workflows.zip
vendored
Binary file not shown.
BIN
.github/workflows/main.zip
vendored
Normal file
BIN
.github/workflows/main.zip
vendored
Normal file
Binary file not shown.
41
.github/workflows/website.yml
vendored
Normal file
41
.github/workflows/website.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: website
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
###################################################
|
||||||
|
- uses: actions/setup-node@v3.1.1
|
||||||
|
- name: Retype build
|
||||||
|
run: |
|
||||||
|
cd docs
|
||||||
|
npm install retypeapp --global
|
||||||
|
retype build
|
||||||
|
###################################################
|
||||||
|
- name: Setup emsdk
|
||||||
|
uses: mymindstorm/setup-emsdk@v12
|
||||||
|
with:
|
||||||
|
version: '3.1.65'
|
||||||
|
actions-cache-folder: 'emsdk-cache'
|
||||||
|
- name: Compile
|
||||||
|
run: |
|
||||||
|
bash build_web.sh
|
||||||
|
mv web docs/.retype/static
|
||||||
|
###################################################
|
||||||
|
- uses: crazy-max/ghaction-github-pages@v3
|
||||||
|
with:
|
||||||
|
target_branch: gh-pages
|
||||||
|
build_dir: docs/.retype
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
if: github.ref == 'refs/heads/main'
|
Loading…
x
Reference in New Issue
Block a user