-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.08 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
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Clone the repo
uses: actions/checkout@v3
- name: Clone the source icons
run: |
git clone https://github.com/twitter/twemoji.git twemoji
cd twemoji
git checkout v14.0.2
- name: Build the browsable HTML
run: |
cd twemoji
../genindex.py > ../index.html
- name: Assemble the website
run: |
mkdir public
mv index.html public
mv twemoji/assets public
mv twemoji-amazing.css public
- name: Push the website to gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd public
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
GIT_WORK_TREE=. git checkout --orphan gh-pages
GIT_WORK_TREE=. git add .
GIT_WORK_TREE=. git commit -m 'pages'
git push --force --set-upstream origin gh-pages