-
Notifications
You must be signed in to change notification settings - Fork 105
48 lines (41 loc) · 1.22 KB
/
nightly.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
name: Nightly
on:
push:
branches:
- main
pull_request:
types: [labeled]
jobs:
fetch_tag:
if: |
github.event_name == 'push' ||
contains(github.event.pull_request.labels.*.name, 'built-as-nightly')
runs-on: ubuntu-latest
name: Build nightly release
outputs:
previous_tag: ${{ steps.previoustag.outputs.tag }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: 'Get Previous tag'
id: previoustag
uses: actions-ecosystem/action-get-latest-tag@v1
with:
semver_only: true
- name: Output tag
shell: bash
run: echo "tag=${{ steps.previoustag.outputs.tag }}" >> "$GITHUB_OUTPUT"
build:
uses: ./.github/workflows/build.yml
needs: fetch_tag
with:
tag: nightly
upload_url: https://uploads.github.com/repos/UpliftGames/wally/releases/108261310/assets{?name,label}
release_ref: ${{ needs.fetch_tag.outputs.previous_tag }}-nightly
overwrite: true
release_name: "Nightly 🌙 "
release_body: |
### For those who live life on the edge 🔪🩸😎
⚠️ Not suitable for production use
🚀 Built from latest main commit