update By Robot2025-08-08 10:11:02 #838
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: higress.io deploy on github pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Build-Deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧 | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
swap-storage: true | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
npm install && npm run build -dd && mkdir -p deploy-dist && cp -R dist/* deploy-dist/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_branch: gh-pages | |
publish_dir: ./deploy-dist | |
keep_files: true |