-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (46 loc) · 1.64 KB
/
Copy pathpublish.yml
File metadata and controls
60 lines (46 loc) · 1.64 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
49
50
51
52
53
54
55
56
57
58
59
60
name: Bundle Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Prepare Thunderstore package
run: |
mkdir -p thunderstore/BepInEx/plugins/BetterMediaControls
cp bin/Release/netstandard2.1/BetterMediaControls.dll \
thunderstore/BepInEx/plugins/BetterMediaControls/
mkdir -p thunderstore/BepInEx/plugins/BetterMediaControls/music
mkdir -p thunderstore/BepInEx/plugins/BetterMediaControls/icons
cp icons/*.png thunderstore/BepInEx/plugins/BetterMediaControls/icons/
cp thunderstore/playlist.json thunderstore/BepInEx/plugins/BetterMediaControls/music/
cp README.md thunderstore/
- name: Create Thunderstore package
run: |
cd thunderstore
zip -r ../CutiePatooties-BetterMediaControls-${{ github.ref_name }}.zip ./*
- name: Create Github Draft Release
id: create_release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: "Release ${{ github.ref_name }}"
files: CutiePatooties-BetterMediaControls-${{ github.ref_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}