Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build icons workflow #1840

Merged
merged 2 commits into from
Sep 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 14 additions & 24 deletions .github/workflows/build_icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ on: workflow_dispatch
jobs:
build:
name: Get Fonts From Icomoon
runs-on: windows-2019
runs-on: windows-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: |
Expand Down Expand Up @@ -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}}
lunatic-fox marked this conversation as resolved.
Show resolved Hide resolved

- name: Get the release message from file
id: release_message_step
Expand All @@ -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.
Expand All @@ -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
)
}}
Expand Down
Loading