seo fix, img route #22
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
jobs: | |
avoid_reduncy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Cancel Previous Redundant Builds | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
deploy: | |
permissions: write-all | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: install dependencies | |
run: npm ci | |
- name: build | |
run: npm run build | |
env: | |
SERVER: pre-production | |
REPO: ${{github.event.repository.name}} | |
- name: Deploy with gh-pages | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npx gh-pages -d dist -b deploy -u "CaperAsDev <[email protected]>" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |