refactor: shop last updated data (#153) #192
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: Frontend Deploy | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- frontend/** | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
concurrency: 'frontend-deploy' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build project | |
run: | | |
cd frontend | |
npm install | |
npm run build | |
- name: Publish | |
uses: cloudflare/wrangler-action@2.0.0 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
workingDirectory: 'frontend' | |
command: pages publish --project-name=shopmon dist |