This repository was archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 1.73 KB
/
release.yml
File metadata and controls
65 lines (54 loc) · 1.73 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
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: "recursive"
- name: Install Aftman
uses: ok-nick/setup-aftman@v0
- name: Authenticate Wally
run: |
cd packages/jest
wally login --token ${{ secrets.WALLY_ACCESS_TOKEN }}
cd ../..
- name: Get latest release
id: latest-release
uses: pozetroninc/github-action-get-latest-release@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true # This will error if no tags have been made yet, in which case publish.sh will fallback.
- name: Publish changed packages
run: bash ./scripts/publish.sh ${{ steps.latest-release.outputs.tag_name }}
- name: Install Just
uses: extractions/setup-just@v1
- name: Install dependencies
shell: bash
run: just install-packages
- name: Build project
run: rojo build --output JestLua.rbxm
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.ref }}
tag: ${{ github.ref }}
draft: true
- name: Upload build artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./JestLua.rbxm
asset_name: JestLua.rbxm
asset_content_type: application/octet-stream