-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.06 KB
/
beta_deploy.yml
File metadata and controls
42 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Beta Deployment'
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/create-github-app-token@v1
id: app-token
with:
owner: EducationalTools-Beta
repositories: |
EducationalTools-Beta.github.io
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_PRIVATE_KEY }}
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install && pnpm install -g firebase-tools
- name: Build
run: |
pnpm run build
- name: Deploy to repo
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ steps.app-token.outputs.token }}
external_repository: EducationalTools-Beta/EducationalTools-Beta.github.io
publish_branch: main
publish_dir: ./build
user_name: 'edutools-bot[bot]'
user_email: '1183662+edutools-bot[bot]@users.noreply.github.com'