-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (38 loc) · 1011 Bytes
/
deploy.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
38
39
40
name: "Deploy react app to github pages"
on:
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "debug"
type: choice
options:
- info
- warning
- debug
tags:
description: "Manual deploy run"
required: false
type: boolean
environment:
description: "Environment for manual deploy"
type: environment
required: true
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: jetli/[email protected]
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
env:
CI: false
- run: git config user.name github-actions
- run: git config user.email [email protected]
- run: git --work-tree build add --all
- run: git commit -m "Automatic Deploy action run by github-actions"
- run: git push origin HEAD:gh-pages --force