ci: add metainfo auto updating
This commit is contained in:
parent
971c490c41
commit
5dc5741771
3 changed files with 38 additions and 14 deletions
36
.github/workflows/meta.yml
vendored
Normal file
36
.github/workflows/meta.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Update metainfo on release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
|
||||||
|
|
||||||
|
- name: Use Node.js 18
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm i
|
||||||
|
|
||||||
|
- name: Update metainfo
|
||||||
|
run: pnpm updateMeta
|
||||||
|
|
||||||
|
- name: Commit and push changes
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add meta/dev.vencord.Vesktop.metainfo.xml
|
||||||
|
git commit -m "Insert release changes for ${{ github.event.release.tag_name }} [skip ci]"
|
||||||
|
git push
|
|
@ -29,19 +29,6 @@
|
||||||
</screenshots>
|
</screenshots>
|
||||||
<releases>
|
<releases>
|
||||||
<!--AUTOGENERATED-->
|
<!--AUTOGENERATED-->
|
||||||
<release version="0.4.4" date="2023-12-02" type="stable">
|
|
||||||
<url>https://github.com/Vencord/Vesktop/releases/tag/v0.4.4</url>
|
|
||||||
<description>
|
|
||||||
<p>What's Changed</p>
|
|
||||||
<ul>
|
|
||||||
<li>improve venmic system compatibility by @Curve in https://github.com/Vencord/Vesktop/pull/230</li>
|
|
||||||
<li>Update steamdeck controller layout by @AAGaming00 in https://github.com/Vencord/Vesktop/pull/236</li>
|
|
||||||
<li>feat: Add option to disable smooth scrolling by @ZirixCZ in https://github.com/Vencord/Vesktop/pull/255</li>
|
|
||||||
<li>unblur shiggy in splash screen by @viacoro in https://github.com/Vencord/Vesktop/pull/221</li>
|
|
||||||
<li>update electron & arrpc @D3SOX in https://github.com/Vencord/Vesktop/pull/258</li>
|
|
||||||
</ul>
|
|
||||||
</description>
|
|
||||||
</release>
|
|
||||||
<!--/AUTOGENERATED-->
|
<!--/AUTOGENERATED-->
|
||||||
<release version="0.4.3" date="2023-11-01" type="stable">
|
<release version="0.4.3" date="2023-11-01" type="stable">
|
||||||
<url>https://github.com/Vencord/Vesktop/releases/tag/v0.4.3</url>
|
<url>https://github.com/Vencord/Vesktop/releases/tag/v0.4.3</url>
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
"start:watch": "pnpm build:dev && tsx scripts/startWatch.mts",
|
"start:watch": "pnpm build:dev && tsx scripts/startWatch.mts",
|
||||||
"test": "pnpm lint && pnpm testTypes",
|
"test": "pnpm lint && pnpm testTypes",
|
||||||
"testTypes": "tsc --noEmit",
|
"testTypes": "tsc --noEmit",
|
||||||
"watch": "pnpm build --watch"
|
"watch": "pnpm build --watch",
|
||||||
|
"updateMeta": "tsx scripts/utils/updateMeta.mts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"arrpc": "github:OpenAsar/arrpc#3e22fd776273afaa4a80c51deb86077ffdd4d2ae"
|
"arrpc": "github:OpenAsar/arrpc#3e22fd776273afaa4a80c51deb86077ffdd4d2ae"
|
||||||
|
|
Loading…
Reference in a new issue