Skip to content

Commit 042d07f

Browse files
committed
Add github related files
1 parent 459c229 commit 042d07f

4 files changed

Lines changed: 140 additions & 0 deletions

File tree

.github/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- suppress-changelog
5+
categories:
6+
- title: Breaking Changes 🛠
7+
labels:
8+
- breaking-change
9+
- title: Features 🎉
10+
labels:
11+
- enhancement
12+
- title: Bug Fixes 🐛
13+
labels:
14+
- bug
15+
- title: Other Changes
16+
labels:
17+
- "*"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dispatch vpm-repos build
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published, created, edited, unpublished, deleted, released]
7+
8+
permissions:
9+
id-token: write
10+
11+
jobs:
12+
dispatch-workflow:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Request repository dispatch
16+
run: |
17+
curl -L \
18+
-X POST \
19+
-H "Accept: application/vnd.github+json" \
20+
-H "Authorization: Bearer ${{ secrets.ACTIONS_KEY }}"\
21+
-H "X-GitHub-Api-Version: 2022-11-28" \
22+
https://api.github.com/repos/Centurion-Creative-Connect/vpm-repos/actions/workflows/build-listing.yml/dispatches \
23+
-d '{"ref":"main"}' \
24+
-w '\n%{response_code}'\
25+
> response
26+
- name: Log response
27+
run: |
28+
cat response
29+
- name: Check response
30+
run: |
31+
[[ $(tail -n 1 response) == "204" ]]

.github/workflows/release.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'master'
8+
- '\d+.\d+.\d'
9+
tags:
10+
- '\d+.\d+.\d+'
11+
- '\d+.\d+.\d+-alpha.\d+'
12+
- '\d+.\d+.\d+-beta.\d+'
13+
- '\d+.\d+.\d+-rc.\d+'
14+
15+
env:
16+
packageName: "org.centurioncc.system.sacc-flight-integration"
17+
18+
permissions:
19+
contents: write
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- name: get version
29+
id: version
30+
uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31
31+
with:
32+
path: "Packages/${{env.packageName}}/package.json"
33+
prop_path: "version"
34+
35+
- name: Set Environment Variables
36+
run: |
37+
echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV
38+
echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV
39+
40+
- name: Create Zip
41+
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
42+
with:
43+
type: "zip"
44+
directory: "Packages/${{env.packageName}}/"
45+
filename: "../../${{env.zipFile}}" # make the zip file two directories up, since we start two directories in above
46+
47+
- run: find "Packages/${{env.packageName}}/" -name \*.meta >> metaList
48+
49+
- name: Create UnityPackage
50+
uses: pCYSl5EDgo/create-unitypackage@cfcd3cf0391a5ef1306342794866a9897c32af0b
51+
with:
52+
package-path: ${{ env.unityPackage }}
53+
include-files: metaList
54+
55+
56+
- name: Make Release
57+
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
58+
if: startsWith(github.ref, 'refs/tags')
59+
with:
60+
tag_name: ${{ steps.version.outputs.prop }}
61+
files: |
62+
${{ env.zipFile }}
63+
${{ env.unityPackage }}
64+
Packages/${{ env.packageName }}/package.json
65+
draft: true
66+
generate_release_notes: true

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SaccFlight Integration
2+
3+
Integrate [SaccFlightAndVehicles](https://github.com/Sacchan-VRC/SaccFlightAndVehicles) with
4+
[Centurion System](https://github.com/Centurion-Creative-Connect/System) for dynamic combat experience.
5+
6+
## Features
7+
8+
- Makes Centurion System's player colliders aware of SaccFlight vehicles, allowing players to get on them without
9+
collider issue.
10+
11+
## How to Import
12+
13+
### Import using VCC
14+
15+
1. Add these repositories to your VCC.
16+
- [DerpyNewbie vpm repository](https://derpynewbie.github.io/vpm-repos/)
17+
- [Centurion Creative Connect vpm repository](https://centurion-creative-connect.github.io/vpm-repos/)
18+
2. Add Centurion System Voice Comms Integration package from Centurion Creative Connect repos.
19+
3. Done!
20+
21+
### Import using unitypackage
22+
23+
1. Open [latest releases](https://github.com/Centurion-Creative-Connect/System.VoiceCommsIntegration/releases/latest).
24+
2. Download unitypackage in assets.
25+
3. Import downloaded unitypackage.
26+
4. Done!

0 commit comments

Comments
 (0)