File tree Expand file tree Collapse file tree 7 files changed +497
-11
lines changed
Expand file tree Collapse file tree 7 files changed +497
-11
lines changed Original file line number Diff line number Diff line change 1+ name : Automated Releases
2+ on : workflow_dispatch
3+
4+ # This Workflow is triggered through the GitHub API:
5+ # curl -X Post \
6+ # -H "Authorization: Bearer <token>" \
7+ # -d '{"ref":"develop"}' \
8+ # https://api.github.com/repos/simple-icons/simple-icons-font/actions/workflows/auto-release.yml/dispatches
9+ # Replacing <token> by a personal access token with scope `public_repo`
10+
11+ jobs :
12+ auto-release :
13+ name : Automated release
14+ runs-on : ubuntu-latest
15+ steps :
16+ - run : echo "Triggered successfully"
Original file line number Diff line number Diff line change 1212 uses : actions/setup-node@v2
1313 with :
1414 node-version : 12.x
15+ - name : Cache node modules
16+ uses : actions/cache@v2
17+ with :
18+ path : ~/.npm
19+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
20+ restore-keys : |
21+ ${{ runner.os }}-build-${{ env.cache-name }}-
22+ ${{ runner.os }}-build-
23+ ${{ runner.os }}-
1524 - name : Install dependencies
16- run : npm ci
25+ run : npm install
1726 - name : Build font
1827 run : npm run build
28+ - name : Upload font files
29+ uses : actions/upload-artifact@v2
30+ with :
31+ name : fonts
32+ path : font/
33+ testpage :
34+ name : Test page
35+ needs : build
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Checkout
39+ uses : actions/checkout@v2
40+ - name : Use Node.js 12.x
41+ uses : actions/setup-node@v2
42+ with :
43+ node-version : 12.x
44+ - name : Cache node modules
45+ uses : actions/cache@v2
46+ with :
47+ path : ~/.npm
48+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
49+ restore-keys : |
50+ ${{ runner.os }}-build-${{ env.cache-name }}-
51+ ${{ runner.os }}-build-
52+ ${{ runner.os }}-
53+ - name : Install dependencies
54+ run : npm install
55+ - name : Download font files
56+ uses : actions/download-artifact@v2
57+ with :
58+ name : fonts
59+ path : font/
60+ - name : Build test page
61+ run : node scripts/buildTestpage.js
62+ - name : Serve testpage
63+ run : ./node_modules/.bin/anywhere -s -p 8080 -d . -f /preview/testpage.html &
64+ - name : Take screenshot of testpage
65+ run : node scripts/preview.js
66+ - name : Upload testpage screenshot
67+ uses : actions/upload-artifact@v2
68+ with :
69+ name : preview
70+ path : screenshot.png
Original file line number Diff line number Diff line change @@ -4,3 +4,6 @@ node_modules/
44# Generated icon font and additional files
55/font /*
66preview /testpage.html
7+
8+ # Miscellaneous
9+ screenshot.png
Original file line number Diff line number Diff line change @@ -40,18 +40,18 @@ You can also [download the latest version of the package][latest-release] and co
4040
4141## Usage
4242
43- Use any of the icons available in simple-icons by adding the following classes to a node in your HTML. Use the ` simple-icons --color` class to apply the brand's color to the icon.
43+ Use any of the icons available in simple-icons by adding the following classes to a node in your HTML. Use the ` simpleicons --color` class to apply the brand's color to the icon.
4444
4545``` html
4646<i class =" simpleicons simpleicons-[ICON NAME]" ></i >
47- <i class =" simpleicons simpleicons-[ICON NAME] simple-icons --color" ></i >
47+ <i class =" simpleicons simpleicons-[ICON NAME] simpleicons --color" ></i >
4848```
4949
5050Where ` [ICON NAME] ` is replaced by the icon name, for example:
5151
5252``` html
5353<i class =" simpleicons simpleicons-simpleicons" ></i >
54- <i class =" simpleicons simpleicons-simpleicons simple-icons --color" ></i >
54+ <i class =" simpleicons simpleicons-simpleicons simpleicons --color" ></i >
5555```
5656
5757In this example we use the ` <i> ` tag, but any inline HTML tag should work as you expect.
You can’t perform that action at this time.
0 commit comments