Skip to content

rebuild

rebuild #177

name: Frontend Update
defaults:
run:
working-directory: frontend
on:
repository_dispatch:
types: [rebuild]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: production
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Cached Modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.lock') }}
- name: Install
run: npm i
- name: Fetch Latest Articles
run: npm run downloadArticles
- name: Commit Latest Articles
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "GithubAction: Updated Latest Articles"
branch: main
file_pattern: 'frontend/data/blog/*.mdx *.mdx'
commit_author: Author <[email protected]>
skip_dirty_check: false
skip_fetch: false
skip_checkout: false