Add more details. #10
This file contains 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: Build Astro Site | |
# | |
#on: | |
# push: | |
# branches: | |
# - master | |
# | |
#jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# | |
# - name: Set up Node.js | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 22 | |
# cache: 'npm' | |
# | |
# - name: Install dependencies | |
# run: npm install | |
# | |
# - name: Build site | |
# run: npm run build | |
# | |
# - name: copy file via ssh key | |
# uses: appleboy/scp-action@master | |
# with: | |
# host: ${{ vars.VPS_IP }} | |
# username: ${{ vars.VPS_USERNAME}} | |
# key: ${{ secrets.SSH_PRIVATE_KEY }} | |
# port: 22 | |
# strip_components: 1 | |
# source: "dist/" | |
# target: "/var/www/mnprt" | |
# | |
# - name: Set up SSH Key and reload nginx | |
# uses: appleboy/ssh-action@master | |
# with: | |
# host: ${{ vars.VPS_IP }} | |
# username: ${{ vars.VPS_USERNAME }} | |
# key: ${{ secrets.SSH_PRIVATE_KEY }} | |
# port: 22 | |
# script: | | |
# sudo nginx -s reload |