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

Sunset in-repo releases #1360

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
23 changes: 21 additions & 2 deletions .github/workflows/pages.yml → .github/workflows/fontjson.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update gh-pages
name: Update gitignore and gh-pages

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
sync:
sync_pages:
runs-on: ubuntu-latest
steps:
- name: Fetch files
Expand Down Expand Up @@ -43,3 +43,22 @@ jobs:
git-config-name: GitHub Actions
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
clean: false

update_gitignore:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Regenerate gitignore
run: |
cd bin/scripts
./update-gitignore.sh

- name: Commit gitignore back to repo
uses: EndBug/add-and-commit@v9
with:
fetch: false
add: ".gitignore"
message: "[ci] Update .gitignore file"
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ jobs:
- name: Commit patched fonts back to repo
# For fonts with repoRelease == false in the font.json the gitignore should
# have been setup in a way that this commits only the README.md
# See also fontjson.yml and update-gitignore.sh
uses: EndBug/add-and-commit@v9
with:
fetch: false
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ bin/scripts/name_parser/__pycache__/*
bin/scripts/name_parser/log
# This is just needed for the cheat sheet and not go into the repo:
css/nerd-fonts-generated-removed.min.css
# AUTOGENERATED lines follow, do not change or remove the comments
# Non-Repo-Released fonts, see fonts.json:
patched-fonts/IntelOneMono/*
!patched-fonts/IntelOneMono/README.md
# AUTOGENERATED lines end
2 changes: 2 additions & 0 deletions bin/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Note: Usually you need to call the scripts in this directory while actually bein
* `test-powerlines.sh`: Print-to-debug powerline examples [4]
* `tests.sh`: Create some font usage gif movie? [x]
* `update-all-contributors-website.py`: Update the contributors page on `nerdfonts.com` (i.e. gh-pages) [7]
* `update-gitignore.sh`: Correct gitignore file for not-released-in-repo fonts [8]
* `version-bump.sh`: Change version number in all scripts on a new release [1]

[1] Used by CI (github release workflow)
Expand All @@ -39,4 +40,5 @@ Note: Usually you need to call the scripts in this directory while actually bein
[5] Used by CI (github packsvgs workflow)
[6] Used by CI (github casks workflow)
[7] Used by CI (github contributors workflow)
[8] Used by CI (github fontjson workflow)
[x] Probably not used by anything
Loading