Skip to content

add deploy to package #2

add deploy to package

add deploy to package #2

Workflow file for this run

name: page
on:
workflow_dispatch:
jobs:
build-and-deploy:
name: Build and deploy page

Check failure on line 9 in .github/workflows/page.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/page.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: npm run build
working-directory: examples/page
- name: Deploy
run: |
git config --global user.name $user_name
git config --global user.email $user_email
git remote set-url origin https://${github_token}@github.com/${repository}
npm run deploy
env:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
repository: ${{ github.repository }}
working-directory: examples/page