Skip to content

use gh ci for build

use gh ci for build #3

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: build
shell: bash
env:
owm: ${{ secrets.OWM_KEY }}
tg_token: ${{ secrets.TG_TOKEN }}
a: ${{ OWM_KEY }}

Check failure on line 22 in .github/workflows/pages.yaml

View workflow run for this annotation

GitHub Actions / Build and deploy

Invalid workflow file

The workflow is not valid. .github/workflows/pages.yaml (Line: 22, Col: 14): Unrecognized named-value: 'OWM_KEY'. Located at position 1 within expression: OWM_KEY .github/workflows/pages.yaml (Line: 23, Col: 14): Unrecognized named-value: 'TG_TOKEN'. Located at position 1 within expression: TG_TOKEN
b: ${{ TG_TOKEN }}
run: |
yarn build
touch build/.nojekyll
echo "$owm\n$tg_token" > build/key.txt
echo "$(date -R -u)" > build/version.txt
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
force_orphan: true