File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Ruby
2+
3+ on :
4+ push :
5+ branches : [ master, dev ]
6+ tags :
7+ - ' v*'
8+ pull_request :
9+ branches : [ master, dev ]
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ gh-pages-wasm :
17+ runs-on : ubuntu-latest
18+ if : github.ref == 'refs/heads/master'
19+
20+ permissions :
21+ contents : write
22+
23+ steps :
24+ - name : Checkout 🛎️
25+ uses : actions/checkout@v4
26+
27+ - name : Setup Rust ⚙️
28+ uses : actions-rs/toolchain@v1
29+ with :
30+ profile : minimal
31+ toolchain : stable
32+ override : true
33+
34+ - name : Add wasm32 target
35+ run : rustup target add wasm32-unknown-unknown
36+
37+ - name : Install wasm-pack
38+ run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
39+
40+ - name : Install and Build 🔧
41+ env :
42+ VITE_PARQUET_URL : ${{ vars.VITE_PARQUET_URL }}
43+ run : |
44+ cd underpass-wasm &&
45+ yarn install &&
46+ yarn build
47+
48+ - run : rm -fr .git/hooks/*
49+ - name : Deploy 🚀
50+ uses : JamesIves/github-pages-deploy-action@v4
51+ with :
52+ folder : underpass-wasm/dist
53+
54+ # docker:
55+ # runs-on: ubuntu-latest
56+ # needs: [test]
57+ # if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.event.ref, 'refs/tags/v')
58+
59+ # permissions:
60+ # contents: read
61+ # packages: write
62+ # id-token: write
63+
64+ # steps:
65+ # - name: Docker Build and Push
66+ # uses: cartoway/docker-compose-build-push-action@main
67+ # with:
68+ # registry_password: ${{ secrets.GITHUB_TOKEN }}
69+ # project: teritorio/underpass-api
70+ # service: api
You can’t perform that action at this time.
0 commit comments