generated from Iryna-Vyshniak/ImageFinder
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) ยท 1.1 KB
/
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
41
42
43
44
45
46
47
48
49
50
name: Build and deploy to GitHub Pages
on:
push:
branches: [main]
schedule:
- cron: '0 0 */6 * *'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout ๐๏ธ
uses: actions/[email protected]
- name: Install, lint, build ๐ง
run: |
npm install
npm run lint:js
npm run build
- name: Deploy ๐
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
commit:
name: Commit changes
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Make a change to update_log.txt
run: |
echo "Update on $(date)" > update_log.txt
- name: Configure Git user
run: |
git config --global user.name 'Iryna-Vyshniak'
git config --global user.email '[email protected]'
- name: Commit changes
run: |
git add update_log.txt
git commit -m "Update log"
git push