fix old old of putting demo #60
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: Upload Assets | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| upload-assets: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| cache-dependency-path: yarn.lock | |
| - name: Use Yarn Classic | |
| run: corepack prepare yarn@1.22.22 --activate | |
| - run: yarn && yarn compile && yarn test | |
| - run: rm -rfv dist/* && yarn release | |
| name: Build web assets | |
| - name: Deploy to server | |
| id: deploy | |
| uses: Pendect/action-rsyncer@v1.1.0 | |
| env: | |
| DEPLOY_KEY: ${{secrets.rsync_private_key}} | |
| with: | |
| flags: "-avzr --progress" | |
| options: "" | |
| ssh_options: "" | |
| src: "dist/*" | |
| dest: "rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}" | |
| - name: Display status from deploy | |
| run: echo "${{ steps.deploy.outputs.status }}" |