Skip to content

Commit c2b3fab

Browse files
committed
ci: add GitHub Actions workflow for building unitypackage
1 parent 60bddd5 commit c2b3fab

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Build unitypackage"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
env:
10+
packageName: "net.kanameliser.editor-plus"
11+
12+
jobs:
13+
build:
14+
runs-on: "ubuntu-latest"
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v4"
18+
19+
- name: "Build"
20+
id: "build"
21+
uses: "docker://ghcr.io/rerigferl/vpm-packager:latest"
22+
with:
23+
args: "-z -u"
24+
25+
- name: "Create Release"
26+
uses: "softprops/action-gh-release@v2"
27+
if: ${{ steps.build.outputs.package-version != '0.0.0' }}
28+
with:
29+
tag_name: ${{ steps.build.outputs.package-version }}
30+
draft: true
31+
generate_release_notes: true
32+
files: |
33+
${{ steps.build.outputs.zip-path }}
34+
${{ steps.build.outputs.unitypackage-path }}
35+
${{ steps.build.outputs.manifest-path }}

0 commit comments

Comments
 (0)