ci: switch metainfo generation to workflow_dispatch
This is needed so we can start using immutable releases
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
name: Update metainfo on release
|
name: Upload release metainfo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
|
||||||
types:
|
|
||||||
- published
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -15,6 +12,18 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Get latest tag
|
||||||
|
id: latest_tag
|
||||||
|
run: |
|
||||||
|
tag=$(git tag --sort=-creatordate | head -n1)
|
||||||
|
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Checkout latest tag
|
||||||
|
run: git checkout "${{ steps.latest_tag.outputs.tag }}"
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v6 # Install pnpm using packageManager key in package.json
|
- uses: pnpm/action-setup@v6 # Install pnpm using packageManager key in package.json
|
||||||
|
|
||||||
- name: Use Node.js 24
|
- name: Use Node.js 24
|
||||||
@@ -28,11 +37,8 @@ jobs:
|
|||||||
- name: Update metainfo
|
- name: Update metainfo
|
||||||
run: pnpm generateMeta
|
run: pnpm generateMeta
|
||||||
|
|
||||||
- name: Commit and merge in changes
|
- name: Upload metainfo to release
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
gh release upload "${{ steps.latest_tag.outputs.tag }}" dist/dev.vencord.Vesktop.metainfo.xml
|
||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
||||||
|
|
||||||
gh release upload "${{ github.event.release.tag_name }}" dist/dev.vencord.Vesktop.metainfo.xml
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user