-
Notifications
You must be signed in to change notification settings - Fork 6
105 lines (83 loc) · 2.53 KB
/
Copy pathrelease.yml
File metadata and controls
105 lines (83 loc) · 2.53 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Build and Publish Binaries
run-name: Release binaries for ${{ github.ref_name }} by @${{ github.actor }}
on:
workflow_dispatch:
push:
paths:
- "wally.toml"
permissions:
contents: write
concurrency:
group: "release"
cancel-in-progress: true
jobs:
manifest:
runs-on: ubuntu-latest
outputs:
version: ${{ fromJSON(steps.set_manifest.outputs.manifest).package.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Rokit
uses: CompeyDev/setup-rokit@v0.2.1
with:
cache: true
- name: Set Manifest
id: set_manifest
run: echo "manifest=$(wally manifest-to-json)" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Build steps
- name: Setup Rokit
uses: CompeyDev/setup-rokit@v0.2.1
with:
cache: true
- name: Build
run: rojo build -o Overture.rbxm
# Upload steps
- name: Upload build
uses: actions/upload-artifact@v7
with:
path: "*.rbxm"
if-no-files-found: error
publish-github:
if: github.ref == 'refs/heads/main' || (contains(needs.manifest.outputs.version, '-') && github.event_name == 'workflow_dispatch')
needs: [build, manifest]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download
uses: actions/download-artifact@v7
- uses: ncipollo/release-action@v1
with:
name: ${{ needs.manifest.outputs.version }}
tag: v${{ needs.manifest.outputs.version }}
commit: ${{ github.head_ref || github.ref_name }}
artifacts: "**/*.rbxm"
prerelease: ${{ contains(needs.manifest.outputs.version, '-') }}
generateReleaseNotes: true
immutableCreate: true
publish-wally:
needs: [build, publish-github]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Rokit
uses: CompeyDev/setup-rokit@v0.1.2
with:
cache: true
- name: Log in to wally
env:
WALLY_AUTH: |
[tokens]
"https://api.wally.run/" = "${{ secrets.WALLY_AUTH }}"
run: |
mkdir ~/.wally
printenv WALLY_AUTH > ~/.wally/auth.toml
- name: Push update to wally
run: wally publish