-
-
Notifications
You must be signed in to change notification settings - Fork 24
64 lines (60 loc) · 1.68 KB
/
Copy pathrelease.yml
File metadata and controls
64 lines (60 loc) · 1.68 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
61
62
63
64
name: Create Release
on:
push:
tags:
- v*.*.*
permissions:
contents: write
env:
OUTPUT_NAME: Purse
ROJO_PROJECT: package.project.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rokit toolchain
uses: CompeyDev/setup-rokit@v0.2.1
- name: Install Wally packages
run: |
wally install
rojo sourcemap $ROJO_PROJECT --output sourcemap.json
wally-package-types --sourcemap sourcemap.json Packages/
- name: Build Rojo project
run: |
mkdir dist
rojo build $ROJO_PROJECT --output dist/$OUTPUT_NAME.rbxm
rojo build $ROJO_PROJECT --output dist/$OUTPUT_NAME.rbxmx
- name: Archive build files
uses: actions/upload-artifact@v7
with:
name: ${{ env.OUTPUT_NAME }}
path: dist/
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rokit toolchain
uses: CompeyDev/setup-rokit@v0.2.1
- name: Setup Wally
env:
WALLY_AUTH_TOKEN: ${{ secrets.WALLY_AUTH_TOKEN }}
run: |
wally login --token "$WALLY_AUTH_TOKEN"
wally install
- name: Download build files
uses: actions/download-artifact@v8
with:
name: ${{ env.OUTPUT_NAME }}
path: dist/
- name: Create release
uses: softprops/action-gh-release@v3
with:
files: dist/*
generate_release_notes: true
- name: Publish to Wally
run: wally publish