Update astro.yml
This commit is contained in:
parent
e30f2407a6
commit
bab0976085
1 changed files with 13 additions and 10 deletions
23
.github/workflows/astro.yml
vendored
23
.github/workflows/astro.yml
vendored
|
@ -76,19 +76,22 @@ jobs:
|
|||
--site "${{ steps.pages.outputs.origin }}" \
|
||||
working-directory: ${{ env.BUILD_PATH }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: ${{ env.BUILD_PATH }}/dist
|
||||
# - name: Upload artifact
|
||||
# uses: actions/upload-pages-artifact@v1
|
||||
# with:
|
||||
# path: ${{ env.BUILD_PATH }}/dist
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v2
|
||||
- name: Install SSH key
|
||||
uses: shimataro/ssh-key-action@6f350ca8484d8d55c2e361e74d17e638dabe713a
|
||||
with:
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
- name: Copy files to VM
|
||||
run: rsync -chav --delete ${{ env.BUILD_PATH }} ${{ secrets.USER_AND_IP }}:/var/www/HenryHiles/tmp
|
||||
- name: Execute remote command
|
||||
run: ssh ${{ secrets.USER_AND_IP }} sudo /var/www/deploy-astro.sh www.henryhiles.com HenryHiles 5137
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue