-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.39 KB
/
release.yml
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
35
36
37
38
---
name: Publish-Release
# Run this workflow every time a new release is published
on:
release:
types: [released]
permissions: read-all
jobs:
publish-release:
name: Publish release to Foundry
runs-on: ubuntu-latest
steps:
- name: POST release
id: myRequest
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.foundryvtt.com/_api/packages/release_version/'
method: 'POST'
customHeaders: '{"Authorization": "${{ secrets.FOUNDRY_API_TOKEN }}"}'
preventFailureOnNoResponse: true
data:
'{
"id": "settlement-sheets",
"release": {
"version": "${{ github.event.release.tag_name }}",
"manifest": "https://github.com/veilza/settlement-sheets/releases/download/${{ github.event.release.tag_name }}/module.json",
"notes": "https://github.com/veilza/settlement-sheets/releases/tag/${{ github.event.release.tag_name }}",
"compatibility": {
"minimum": "12",
"verified": "12.328",
"maximum": ""
}
}
}'