-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.29 KB
/
Copy pathrelease.yml
File metadata and controls
48 lines (40 loc) · 1.29 KB
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
39
40
41
42
43
44
45
46
47
48
name: Create Release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get version from module.json
id: get_version
run: |
VERSION=$(cat module.json | grep -o '"version": *"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
- name: Create module.zip
run: |
zip -r module.zip module.json README.md scripts/ styles/ lang/ -x "*.git*"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_version.outputs.version }}
name: v${{ steps.get_version.outputs.version }}
body: |
## Aspects of Verun: Dual Backgrounds v${{ steps.get_version.outputs.version }}
Automatic release created.
### Installation
Use this manifest URL in Foundry VTT:
```
https://raw.githubusercontent.com/${{ github.repository }}/main/module.json
```
files: module.zip
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}