-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from maxammann/fix-deployment
Fix deployment of docs, and disable of demo
- Loading branch information
Showing
3 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters