forked from ari/ari-express
Add the actual build step smh
This commit is contained in:
parent
5e03fbed50
commit
73315e96e8
1 changed files with 6 additions and 3 deletions
|
@ -23,13 +23,16 @@ jobs:
|
||||||
ssh-keyscan -H ${{ vars.SERVER_HOST }} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${{ vars.SERVER_HOST }} >> ~/.ssh/known_hosts
|
||||||
echo "Deploying to ${{ vars.SERVER_HOST }} as ${{ vars.SERVER_USER }} to /var/www/${{ github.ref_name }}"
|
echo "Deploying to ${{ vars.SERVER_HOST }} as ${{ vars.SERVER_USER }} to /var/www/${{ github.ref_name }}"
|
||||||
|
|
||||||
- name: Debug SSH Connection
|
- name: Install Deno
|
||||||
run: ssh -v -o PasswordAuthentication=no -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} echo "SSH Connection Successful"
|
uses: https://github.com/denoland/setup-deno@v2
|
||||||
|
|
||||||
|
- name: build site
|
||||||
|
run: |
|
||||||
|
deno task build
|
||||||
- name: create folder if not exists
|
- name: create folder if not exists
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /home/common/www/ariexpress/${{ github.ref_name }}"
|
ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /home/common/www/ariexpress/${{ github.ref_name }}"
|
||||||
|
|
||||||
- name: Deploy via SCP
|
- name: Deploy via SCP
|
||||||
run: |
|
run: |
|
||||||
scp -i ~/.ssh/id_ed25519 -rv ./* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/home/common/www/ariexpress/${{ github.ref_name }}
|
scp -i ~/.ssh/id_ed25519 -rv ./_site/* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/home/common/www/ariexpress/${{ github.ref_name }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue