-
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (64 loc) · 2.73 KB
/
release-please.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
on:
workflow_run:
workflows: [".Net"]
branches: ["master"]
types:
- completed
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- id: release
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
- name: Download release artifact
if: ${{ steps.release.outputs.release_created }}
uses: actions/download-artifact@v4
with:
name: release-artifact
path: artifact
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.DEPENDENCY_TOKEN }}
- name: Download Tobey.UnityAudio
if: ${{ steps.release.outputs.release_created }}
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
repo: "toebeann/Tobey.UnityAudio"
file: "Tobey.UnityAudio.zip"
version: "tags/v2.0.2"
token: ${{ secrets.DEPENDENCY_TOKEN }}
- name: Zip release artifact
if: ${{ steps.release.outputs.release_created }}
run: |
cd artifact && npx downdoc -a env-github -a env-thunderstore README.adoc && zip -r techtonica_vr-${{ steps.release.outputs.tag_name }}-thunderstore.zip ./ && cd ..
mv artifact/techtonica_vr-${{ steps.release.outputs.tag_name }}-thunderstore.zip .
rm artifact/README.md
unzip Tobey.UnityAudio.zip -d ./artifact/
cd artifact && zip -r techtonica_vr-${{ steps.release.outputs.tag_name }}.zip ./ && cd ..
mv artifact/techtonica_vr-${{ steps.release.outputs.tag_name }}.zip .
- name: Upload release artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ steps.release.outputs.tag_name }} techtonica_vr-${{ steps.release.outputs.tag_name }}.zip --repo Xenira/TechtonicaVR
- name: Upload to Thunderstore
uses: GreenTF/upload-thunderstore-package@v4.3
if: ${{ steps.release.outputs.release_created }}
with:
namespace: "3_141"
community: techtonica
name: TechtonicaVR
description: VR mod for Techtonica
categories: |
mods
file: techtonica_vr-${{ steps.release.outputs.tag_name }}-thunderstore.zip
version: "${{ steps.release.outputs.major }}.${{ steps.release.outputs.major }}.${{ steps.release.outputs.patch }}"
repo: thunderstore.io
token: ${{ secrets.THUNDERSTORE_KEY }}