发布渐进式组件作者 API / Publish a progressive component authoring surface #51
Workflow file for this run
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| name: Upload | |
| jobs: | |
| build_and_upload: | |
| name: Build and Upload | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Koka | |
| run: | | |
| curl -sSL https://github.com/koka-lang/koka/releases/download/v3.2.3/install.sh | sh -s -- --prefix=$HOME/.local | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - run: corepack enable | |
| - run: yarn install --immutable | |
| - run: yarn build | |
| - name: Deploy to server | |
| id: deploy | |
| uses: Pendect/action-rsyncer@v2.0.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 }}" |