Skip to content

Commit

Permalink
add(ci): gh page
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Jun 1, 2024
1 parent 2fbf7be commit bf3feac
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: deploy

on:
push:
branches:
- '*'

pull_request:
branches:
- "*"
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: wasm32-unknown-unknown
components: rust-src
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. '0.9.1', 'latest')
version: 'latest'
- uses: jetli/[email protected]
with:
# Optional version of trunk to install(eg. 'v0.16.0', 'latest')
version: 'latest'
- name: Build
run: |
trunk build --public-url=/clash2sing-box/ --release web/index.html
- name: Deploy demo
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: web/dist
clean: true
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*.json
*.yaml
*.yml
/result
/.direnv
/target

0 comments on commit bf3feac

Please sign in to comment.