Skip to content

Commit

Permalink
Merge pull request #123 from maxammann/fix-deployment
Browse files Browse the repository at this point in the history
Fix deployment of docs, and disable of demo
  • Loading branch information
maxammann committed Jun 3, 2022
2 parents cdc3c0e + 1ba6079 commit 8c5d8ee
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
SSH_KEY: ${{ inputs.key }}
shell: bash
run: |
echo "$SSH_KEY" > id_rsa
chmod 600 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa [email protected] 'mkdir -p ~/public_html/maplibre-rs/${{ inputs.destination }} && find ~/public_html/maplibre-rs/${{ inputs.destination }} -type f -not -name ".htaccess" -delete'
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa [email protected] 'mkdir -p ~/public_html/maplibre-rs/${{ inputs.destination }} && find ~/public_html/maplibre-rs/${{ inputs.destination }} -type f -not -name ".htaccess" -delete'
rsync -e "ssh -o StrictHostKeyChecking=no -i id_rsa" -r "${{ inputs.source }}" [email protected]:~/public_html/maplibre-rs/${{ inputs.destination }}/
22 changes: 11 additions & 11 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ jobs:
name: Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v2
- name: Download api-docs
uses: actions/download-artifact@v2
with:
name: api-docs
- uses: actions/download-artifact@v2
path: artifacts/api
- name: Download book
uses: actions/download-artifact@v2
with:
name: book
- uses: ./.github/actions/deploy
with:
source: .
destination: api-docs
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
- uses: ./.github/actions/deploy
path: artifacts/book
- uses: actions/checkout@v2
- name: Deploy
uses: JamesIves/[email protected]
with:
source: .
destination: docs
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
branch: gh-pages
folder: artifacts
29 changes: 15 additions & 14 deletions .github/workflows/library-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,18 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: webgpu-demo
- name: Deploy
if: "!inputs.webgl"
uses: ./.github/actions/deploy
with:
source: .
destination: webgl
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
- name: Deploy
if: "!inputs.webgl"
uses: ./.github/actions/deploy
with:
source: .
destination: webgpu
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
path: demo
# - name: Deploy
# if: "!inputs.webgl"
# uses: ./.github/actions/deploy
# with:
# source: .
# destination: webgl
# key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
# - name: Deploy
# if: "!inputs.webgl"
# uses: ./.github/actions/deploy
# with:
# source: .
# destination: webgpu
# key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}

0 comments on commit 8c5d8ee

Please sign in to comment.