Skip to content

Commit

Permalink
Merge branch 'upstream-main' into classic-theme-enable-with-extended-…
Browse files Browse the repository at this point in the history
…compatibility
  • Loading branch information
levitation committed Oct 11, 2024
2 parents b3a2e27 + 733d035 commit 484a300
Show file tree
Hide file tree
Showing 37 changed files with 9,796 additions and 1,680 deletions.
2 changes: 2 additions & 0 deletions .github/pr_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
'https://twitter.com/learn_more': 'https://github.com/learn-more',
'https://twitter.com/realgam3': 'https://github.com/realgam3',
'https://twitter.com/teknixstuff': 'https://github.com/teknixstuff',
'https://twitter.com/kawaipure': 'https://github.com/kawapure',
'https://twitter.com/TorutheRedFox': 'https://github.com/TorutheRedFox',
}

MOD_METADATA_PARAMS = {
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ jobs:
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Install global dependencies
run: npm install -g ts-node
- name: Prepare static content
run: ts-node deploy.ts
run: npx tsx deploy.ts
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mod_compatibility_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
# '1.5', # Same compiler as 1.5.1.
'1.5.1',
]
exclude:
# Exclude 1.3.1, which is quite old, for everyone but m417z.
- version: ${{ github.event.pull_request.user.login != 'm417z' && '1.3.1' }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
9 changes: 9 additions & 0 deletions deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ function generateRssFeed() {
content: string;
url: string;
date: Date;
author: {
name?: string;
link?: string;
};
};

let feedItems: FeedItem[] = [];
Expand Down Expand Up @@ -275,6 +279,10 @@ function generateRssFeed() {
content,
url: `https://windhawk.net/mods/${modId}`,
date: new Date(commitTime * 1000),
author: {
name: metadata.author,
link: metadata.github,
},
});

if (feedItems.length >= 20) {
Expand Down Expand Up @@ -309,6 +317,7 @@ function generateRssFeed() {
link: feedItem.url,
content: markdownToHtml(feedItem.content),
date: feedItem.date,
author: [feedItem.author],
});
}

Expand Down
Loading

0 comments on commit 484a300

Please sign in to comment.