docs(blog): add shorebird code push v2 blog post #578
Workflow file for this run
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: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Git Checkout | |
uses: actions/checkout@v4 | |
- name: βοΈ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.12.x | |
cache: npm | |
cache-dependency-path: package-lock.json | |
- name: π¦ Install Dependencies | |
run: npm ci | |
- name: β¨ Check Format | |
run: npm run format:check | |
- name: π§Ή Lint | |
run: npm run lint | |
- name: π€ Check Spelling | |
run: npm run cspell "**" | |
- name: π· Build website | |
run: npm run build | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
steps: | |
- name: π Git Checkout | |
uses: actions/checkout@v4 | |
- name: βοΈ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.12.x | |
cache: npm | |
cache-dependency-path: package-lock.json | |
- name: π¦ Install Dependencies | |
run: npm ci | |
- name: β¨ Check Format | |
run: npm run format:check | |
- name: π§Ή Lint | |
run: npm run lint | |
- name: π€ Check Spelling | |
run: npm run cspell | |
- name: π· Build website | |
run: npm run build | |
- name: βοΈ Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
user_name: github-actions[bot] | |
user_email: 41898282+github-actions[bot]@users.noreply.github.com |