Skip to content

docs: refine bilingual README branding #11

docs: refine bilingual README branding

docs: refine bilingual README branding #11

Workflow file for this run

name: Surge Preview

Check failure on line 1 in .github/workflows/surge-preview.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/surge-preview.yml

Invalid workflow file

(Line: 26, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SURGE_TOKEN != '', (Line: 29, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SURGE_TOKEN != ''
on:
pull_request:
branches: [master]
permissions:
contents: read
pull-requests: write
statuses: write
concurrency:
group: surge-preview-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Install dependencies
run: npm install --ignore-scripts --no-audit --loglevel=warn
- name: Build preview
if: ${{ secrets.SURGE_TOKEN != '' }}
run: npm run build
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
if: ${{ secrets.SURGE_TOKEN != '' }}
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
with:
dist: docs-dist
failOnError: false
github_token: ${{ secrets.GITHUB_TOKEN }}
surge_token: ${{ env.SURGE_TOKEN }}