Skip to content

Commit

Permalink
Add gh-page.yml for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxxyu committed Jan 10, 2025
1 parent 2d83f9d commit 613fc26
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches:
- main
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

name: Build and deploy GitHub Pages
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: true

- name: build_and_deploy
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
test:
Expand Down

0 comments on commit 613fc26

Please sign in to comment.