ci: check dir contents #7
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: Simple Build | |
# on: | |
# push: | |
# branches: [main] | |
# jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Install Node | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 16 | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Install deps | |
# run: npm ci | |
# - name: Build | |
# run: npm run build | |
# - name: Upload build result | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: dist | |
# path: ./dist | |
# deploy: | |
# runs-on: ubuntu-latest | |
# needs: build | |
# steps: | |
# - name: Download build | |
# uses: actions/download-artifact@v4 | |
# with: | |
# name: dist | |
# - name: Transfer build files to server | |
# uses: appleboy/[email protected] | |
# with: | |
# host: 217.16.27.70 | |
# username: ubuntu | |
# key: ${{ secrets.PRIVATE_KEY }} | |
# source: "dist/*" | |
# target: "/home/ubuntu/dist" | |
# strip_components: 1 |