forked from react-native-async-storage/async-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 973 Bytes
/
website-deployment.yml
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
name: Website
on:
push:
branches:
- main
paths:
- "packages/website/**"
- ".github/workflows/website-deployment.yml"
jobs:
deploy:
name: Deploy website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: "false"
- name: Setup project
uses: ./.github/actions/setup-project
- name: Install dependencies
run: yarn
working-directory: ./packages/website
- name: Setup git user
run: ./setup-ci-git-user.sh
working-directory: ./.github/scripts
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
GITHUB_NAME: ${{ vars.GH_BOT_NAME }}
GITHUB_EMAIL: ${{ vars.GH_BOT_EMAIL }}
GIT_SET_GLOBAL_USER: true
- name: Deploy
env:
GIT_USER: ${{ vars.GH_BOT_NAME }}
run: yarn run deploy
working-directory: ./packages/website