Skip to content

Commit

Permalink
add page.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonov548 committed Dec 19, 2023
1 parent 21cd3fe commit 730ab7d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: page

on:
workflow_dispatch:

jobs:
build-and-deploy:

name: Build and deploy page

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

0 comments on commit 730ab7d

Please sign in to comment.