Migrate web components to UI primitives #5
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 MyBlog Site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: myblog-site-deploy | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install root dependencies | |
| run: npm ci | |
| - name: Install web dependencies | |
| run: npm ci | |
| working-directory: apps/web | |
| - name: Install SSH key | |
| uses: webfactory/ssh-agent@v0.9.1 | |
| with: | |
| ssh-private-key: ${{ secrets.MYBLOG_DEPLOY_SSH_KEY }} | |
| - name: Trust deploy host | |
| run: | | |
| mkdir -p ~/.ssh | |
| ssh-keyscan -H 124.220.233.126 >> ~/.ssh/known_hosts | |
| - name: Verify workspace and repository governance | |
| run: | | |
| npm run check:workspace | |
| npm run check:governance | |
| - name: Deploy static site | |
| run: npm run deploy:site |