forked from oblador/react-native-vector-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.64 KB
/
Copy pathdeploy.yaml
File metadata and controls
66 lines (55 loc) · 1.64 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Deploy
on:
workflow_dispatch:
inputs:
skip-npm:
type: boolean
description: Skip NPM release
skip-directory:
type: boolean
description: Skip directory website deployment
pre-release:
type: boolean
description: Create a pre-release
release:
types: [created]
jobs:
npm:
name: NPM
runs-on: ubuntu-latest
if: github.event.inputs.skip-npm != 'true'
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Publish to NPM
if: github.event.inputs.pre-release != 'true'
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish pre-release to NPM
if: github.event.inputs.pre-release = 'true'
run: yarn prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
directory:
name: Directory website
runs-on: ubuntu-latest
if: github.event.inputs.skip-directory != 'true'
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
working-directory: packages/directory
- name: Build directory
run: yarn build
working-directory: packages/directory
- name: Publish static assets to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4
with:
branch: gh-pages
folder: packages/directory/build