Skip to content

Commit 1288ae9

Browse files
committed
Bump 2.1.6
1 parent 6e2f13c commit 1288ae9

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release Addons
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [closed]
9+
branches:
10+
- master
11+
12+
jobs:
13+
release:
14+
if: github.event_name == 'push' || (github.event.pull_request.merged == true)
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Extract version from plugin.cfg
22+
id: get_version
23+
run: |
24+
version=$(grep '^version=' addons/godotvmf/plugin.cfg | cut -d= -f2 | tr -d '"')
25+
echo "version=$version" >> "$GITHUB_OUTPUT"
26+
27+
- name: Create ZIP archive with version in name
28+
run: |
29+
zip -r addons-v${{ steps.get_version.outputs.version }}.zip addons
30+
31+
- name: Create GitHub release and upload archive
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
tag_name: v${{ steps.get_version.outputs.version }}
35+
name: Release v${{ steps.get_version.outputs.version }}
36+
files: addons-v${{ steps.get_version.outputs.version }}.zip
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

addons/godotvmf/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="GodotVMF"
44
description="Allows use VMF files in Godot"
55
author="H2xDev"
6-
version="2.1.5"
6+
version="2.1.6"
77
script="godotvmf.gd"

0 commit comments

Comments
 (0)