Skip to content

chore: modify text #288

chore: modify text

chore: modify text #288

name: Auto build & deploy when master changed
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout master
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Build project
run: npm install && npm run build
- name: Clean repo
run: git reset --hard
- name: Deploy to remote
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: ${{ secrets.DEPLOY_REMOTE_SERVER }}
ftp-username: ${{ secrets.DEPLOY_REMOTE_USER }}
ftp-password: ${{ secrets.DEPLOY_REMOTE_PASSWORD }}
local-dir: dist
git-ftp-args: --insecure
- name: Purge Cloudflare cache
uses: jakejarvis/cloudflare-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
PURGE_URLS: '["https://pixiviz.xyz/index.html", "https://pixiviz.xyz/service-worker.js"]'