mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Try to use vercel
This commit is contained in:
parent
497eef3ea4
commit
7e121603f9
17
.github/workflows/rust.yml
vendored
17
.github/workflows/rust.yml
vendored
@ -1,6 +1,6 @@
|
||||
name: Rust
|
||||
|
||||
on: [push, pull_request]
|
||||
on: [ push, pull_request ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
@ -37,10 +37,13 @@ jobs:
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Prepare for deployment
|
||||
run: mv dist public
|
||||
- name: Deploy to gh-pages 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
||||
run: |
|
||||
mv dist public
|
||||
cp ../vercel.json public/
|
||||
- uses: amondnet/vercel-action@v20
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: web/public
|
||||
|
||||
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
||||
vercel-org-id: ${{ secrets.ORG_ID}}
|
||||
vercel-project-id: ${{ secrets.PROJECT_ID}}
|
||||
working-directory: web/public
|
||||
vercel-args: '--prod'
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,3 +13,5 @@ Cargo.lock
|
||||
# MSVC Windows builds of rustc generate these, which store debugging information
|
||||
*.pdb
|
||||
|
||||
|
||||
.vercel
|
||||
|
||||
22
vercel.json
Normal file
22
vercel.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": 2,
|
||||
"public": false,
|
||||
"github": {
|
||||
"enabled": false
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cross-Origin-Opener-Policy",
|
||||
"value": "same-origin"
|
||||
},
|
||||
{
|
||||
"key": "Cross-Origin-Embedder-Policy",
|
||||
"value": "require-corp"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user