forked from devicons/devicon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build icons workflow (devicons#1840)
* Fix build icons workflow * Moving Build Icons to Ubuntu machine
- Loading branch information
1 parent
c79501d
commit 5553383
Showing
1 changed file
with
17 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ on: workflow_dispatch | |
jobs: | ||
build: | ||
name: Get Fonts From Icomoon | ||
runs-on: windows-2019 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies (python, pip, npm) | ||
run: | | ||
|
@@ -18,13 +18,13 @@ jobs: | |
npm install | ||
- name: Executing build and create fonts via icomoon | ||
shell: cmd | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: > | ||
python ./.github/scripts/icomoon_build.py | ||
./.github/scripts/build_assets/geckodriver-v0.30.0-win64/geckodriver.exe ./icomoon.json | ||
./devicon.json ./icons ./ %GITHUB_TOKEN% --headless | ||
./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json | ||
./devicon.json ./icons ./ $GITHUB_TOKEN --headless | ||
- name: Upload geckodriver.log for debugging purposes | ||
uses: actions/upload-artifact@v2 | ||
|
@@ -44,15 +44,15 @@ jobs: | |
if: success() | ||
run: npm run build-css | ||
|
||
- name: Upload screenshot of the newly made icons | ||
id: imgur_step | ||
uses: devicons/[email protected] | ||
if: success() | ||
with: | ||
# will have "new_icons.png" and "new_svgs.png" | ||
# in that order (cause sorted alphabetically) | ||
path: ./screenshots/*.png | ||
client_id: ${{secrets.IMGUR_CLIENT_ID}} | ||
# - name: Upload screenshot of the newly made icons | ||
# id: imgur_step | ||
# uses: devicons/[email protected] | ||
# if: success() | ||
# with: | ||
# # will have "new_icons.png" and "new_svgs.png" | ||
# # in that order (cause sorted alphabetically) | ||
# path: ./screenshots/*.png | ||
# client_id: ${{secrets.IMGUR_CLIENT_ID}} | ||
|
||
- name: Get the release message from file | ||
id: release_message_step | ||
|
@@ -70,22 +70,14 @@ jobs: | |
I'm Devicon's Build Bot and I just built some new font files and devicon.min.css file. | ||
Here are all the **SVGs** that were uploaded (the new ones are those with highlight): | ||
{0} | ||
Here is what they look like as icons: | ||
{1} | ||
The devicon.min.css file contains: | ||
-The icon content | ||
-The aliases | ||
-The colored classes | ||
I also compiled a list of new features and icons that were added since last release. | ||
``` | ||
{2} | ||
{0} | ||
``` | ||
More information can be found in the GitHub Action logs for this workflow. | ||
|
@@ -100,8 +92,6 @@ jobs: | |
${{ | ||
format( | ||
env.MESSAGE, | ||
fromJSON(steps.imgur_step.outputs.markdown_urls)[1], | ||
fromJSON(steps.imgur_step.outputs.markdown_urls)[0], | ||
steps.release_message_step.outputs.content | ||
) | ||
}} | ||
|