Refactor RSS feed to include custom media content for images #35
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: Build and Publish Web Site | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
build: | |
name: Build and Push | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: '9.14.4' | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Redirect 404 to Index for SPA | |
run: cp dist/index.html dist/404.html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
cname: blog.angor.io |