-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (29 loc) · 996 Bytes
/
publish-updater.yml
File metadata and controls
34 lines (29 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish Updater Manifest
on:
release:
types: [published]
permissions:
contents: write
jobs:
deploy-updater-manifest:
name: Deploy Updater Manifest
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download latest.json
env:
GH_TOKEN: ${{ github.token }}
run: |
mkdir -p ./updater-dist
gh release download ${{ github.event.release.tag_name }} --pattern 'latest.json' --dir ./updater-dist --clobber
- name: Deploy to updater-meta branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./updater-dist
publish_branch: updater-meta
keep_files: false
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Deploy latest.json for ${{ github.event.release.tag_name }}'