fixes to dd pages #55
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 Staging Site to umd-mith.github.io | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Astro site | |
| run: pnpm build | |
| env: | |
| AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }} | |
| AIRTABLE_MITH_BASE_ID: ${{ secrets.AIRTABLE_MITH_BASE_ID }} | |
| - name: Deploy to umd-mith.github.io | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }} | |
| publish_dir: ./dist | |
| external_repository: umd-mith/umd-mith.github.io | |
| publish_branch: main |