Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github actions #631

Merged
merged 15 commits into from
Oct 29, 2023
Prev Previous commit
Next Next commit
Adding index page
Marc Tonsen committed Oct 27, 2023
commit f93af71503a815b1203cb70e37ab2b3a17a31253
16 changes: 11 additions & 5 deletions .github/workflows/build-deploy-staging-vitepress.yml
Original file line number Diff line number Diff line change
@@ -33,11 +33,17 @@ jobs:
run: |
du -ah neon/.vitepress/dist

- name: Archive build artifacts
- name: Neon - Upload
uses: actions/upload-artifact@v2
with:
name: neon-vitepress-dist
name: neon
path: neon/.vitepress/dist

- name: Index - Upload
uses: actions/upload-artifact@v2
with:
name: index
path: index.html

deploy-staging:
name: Deploy to staging
@@ -53,14 +59,14 @@ jobs:
- name: Download generated website dist dir
uses: actions/download-artifact@v2
with:
name: neon-vitepress-dist
path: neon/.vitepress/dist
name: neon
path: neon/

- name: Rsync action - Deploy to staging
uses: burnett01/[email protected]
with:
switches: -hrvz --delete --exclude=".htaccess"
path: neon/.vitepress/dist/
path: .
remote_path: ${{ secrets.REMOTE_PATH }}
remote_host: ${{ secrets.REMOTE_HOST}}
remote_user: ${{ secrets.REMOTE_USER }}