-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (78 loc) · 2.46 KB
/
release.yml
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
name: Rekease
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
pages: write
id-token: write
jobs:
bump:
name: Bump Versions
runs-on: ubuntu-latest
outputs:
release-body: ${{ steps.update-changelog.outputs.release-notes }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'main'
- name: Update changelog
id: update-changelog
uses: thomaseizinger/[email protected]
with:
tag: ${{ github.ref_name }}
changelogPath: 'docs/changelog.md'
- name: Commit and push
uses: EndBug/add-and-commit@v9
with:
message: Bump version to ${{ github.ref_name }}
default_author: github_actions
publish-build:
name: Publish Build
runs-on: ubuntu-latest
needs: bump
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Pesde
uses: 2jammers/[email protected]
with:
cache: 'true'
pesde-version: 'v0.5.1+registry.0.1.0'
- name: Install dependencies
run: pesde install
- name: Generate sourcemap
run: rojo sourcemap standalone.project.json --output sourcemap.json
- name: Format code
run: stylua src/
- name: Build standalone
run: rojo build standalone.project.json --output ./Standalone.rbxm
- name: Draft release
uses: softprops/[email protected]
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
prerelease: ${{ contains(github.ref_name, 'rc') }}
generate_release_notes: true
body: |
## Changelog
${{ needs.bump.outputs.release-body }}
files: |
./Standalone.rbxm
publish-package:
name: Publish Package
runs-on: ubuntu-latest
needs: bump
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Pesde
uses: 2jammers/[email protected]
with:
pesde-version: 'v0.5.1+registry.0.1.0'
token: '${{ secrets.PESDE_TOKEN }}'
- name: Publish
run: |
pesde publish -y