fix: Update fetcher call in getNewestComics to include page parameter… #9
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 Mangaloom | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Create .env.production | |
| run: | | |
| echo "${{ secrets.ENV_FILE }}" > .env.production | |
| - name: Deploy to VPS | |
| uses: appleboy/[email protected] | |
| with: | |
| host: ${{ secrets.VPS_HOST }} | |
| username: ${{ secrets.VPS_USER }} | |
| key: ${{ secrets.VPS_KEY }} | |
| script: | | |
| cd /root/mangaloom || git clone https://github.com/Mangaloom/web.git /root/mangaloom | |
| cd /root/mangaloom | |
| docker compose down --remove-orphans | |
| git pull origin main | |
| if ! command -v npm &> /dev/null; then | |
| echo "npm is not installed. Please install npm first." | |
| exit 1 | |
| fi | |
| if ! command -v pnpm &> /dev/null; then | |
| echo "pnpm is not installed. Please install pnpm first." | |
| exit 1 | |
| fi | |
| pnpm install | |
| pnpm build | |
| echo "${{ secrets.ENV_FILE }}" > .env.production | |
| docker compose --env-file .env.production up -d --build --remove-orphans |