-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (59 loc) · 2.18 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (59 loc) · 2.18 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
name: Release
on:
workflow_dispatch:
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
contents: write
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: CompeyDev/setup-rokit@v0.2.1
- uses: actions/setup-node@v7.0.0
with:
node-version: 22
cache: npm
- run: npm ci
# The release gate is the merge gate. Nothing ships that would not merge.
- run: lune run scripts/run.luau verify
- run: lune run scripts/run.luau check
# wally.toml is the one home of the version, and every other file is a copy
# the versions check already holds to it.
- id: version
run: echo "value=$(grep -m1 '^version' wally.toml | sed -E 's/.*\"(.*)\".*/\1/')" >> "$GITHUB_OUTPUT"
- run: lune run scripts/run.luau build
- run: lune run scripts/run.luau test
- run: lune run scripts/run.luau bench
- run: lune run scripts/run.luau dist
# What was verified, kept so a published package can be held against it. Publishing
# happens from a machine somebody is signed in on rather than from here.
- uses: actions/upload-artifact@v7.0.1
with:
name: dist
path: dist/
retention-days: 7
if-no-files-found: error
# The names a person downloads, which the readme names and every release before this used.
# The build names say which project made them, and say nothing to whoever is fetching one.
- run: |
mv build/default.rbxm build/Lync.rbxm
mv build/test.rbxl build/Lync-dev.rbxl
mv build/bench.rbxl build/Lync-bench.rbxl
- uses: softprops/action-gh-release@v3.0.0
with:
tag_name: v${{ steps.version.outputs.value }}
generate_release_notes: true
fail_on_unmatched_files: true
body: Cut against ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
files: |
build/Lync.rbxm
build/Lync-dev.rbxl
build/Lync-bench.rbxl