-
Notifications
You must be signed in to change notification settings - Fork 43
24 lines (23 loc) · 1.06 KB
/
foundry.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
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag Name'
required: true
default: 'v11.0.0'
jobs:
foundry:
name: Push to Foundry
runs-on: ubuntu-latest
steps:
- name: Get Version Number
id: tag
run: |
TAG_NAME=${{ inputs.tag_name }}
echo "::set-output name=version::${TAG_NAME//v/}"
- name: Push to Foundry
uses: fjogeleit/http-request-action@v1
with:
url: 'https://api.foundryvtt.com/_api/packages/release_version/'
customHeaders: '{"Content-Type": "application/json", "Authorization": "${{ secrets.FOUNDRY_TOKEN }}" }'
data: '{ "id": "forbidden-lands", "release": { "version": "${{ steps.tag.outputs.version }}", "manifest": "https://raw.githubusercontent.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/${{ inputs.tag_name }}/system.json", "notes": "https://github.com/fvtt-fria-ligan/forbidden-lands-foundry-vtt/releases/tag/${{ inputs.tag_name }}", "compatibility": { "minimum": "10", "verified": "11", "maximum": "11" } } }'