Oops. #172
This file contains hidden or 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
| 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/[email protected] | |
| env: | |
| DEPLOY_KEY: ${{secrets.DEPLOY_KEY}} | |
| with: | |
| flags: "-avzrt --delete" | |
| options: "" | |
| ssh_options: "" | |
| src: "dist/" | |
| dest: "[email protected]:/srv/home/leenartsnet/domains/do-ios.com/htdocs/www" | |
| - name: Display status from deploy | |
| run: echo "${{ steps.deploy.outputs.status }}" |