Skip to content

Updated Michael's picture/Twitter #128

Updated Michael's picture/Twitter

Updated Michael's picture/Twitter #128

Workflow file for this run

name: Deploy Astro Dist site root
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site output
uses: withastro/action@v3
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
# resolve-dep-from-path: false # If the dependency file should be resolved from the root location of your Astro project. Defaults to `true`. (optional)
- name: Deploy to server
id: deploy
uses: Pendect/action-rsyncer@v2.0.0
env:
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
with:
flags: "-avzrt --delete"
options: ""
ssh_options: ""
src: "dist/"
dest: "leenartsnet@noisy-queen.leenartsnet.webinf.buildingtogether.io:/srv/home/leenartsnet/domains/do-ios.com/htdocs/www"
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"