Merge pull request #123 from maxammann/fix-deployment

Fix deployment of docs, and disable of demo
This commit is contained in:
Max Ammann 2022-06-03 11:11:56 +02:00 committed by Maximilian Ammann
commit 4dbd47b09a
3 changed files with 29 additions and 28 deletions

View File

@ -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 max@maxammann.org '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 max@maxammann.org '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 }}" max@maxammann.org:~/public_html/maplibre-rs/${{ inputs.destination }}/

View File

@ -48,19 +48,19 @@ jobs:
name: Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v2
- uses: actions/checkout@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
path: artifacts/book
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
source: .
destination: api-docs
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
- uses: ./.github/actions/deploy
with:
source: .
destination: docs
key: ${{ secrets.SSH_KEY_MAXAMMANN_ORG }}
branch: gh-pages
folder: artifacts

View File

@ -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 }}