forked from zeldaret/Z64Utils
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (25 loc) · 779 Bytes
/
push.yml
File metadata and controls
31 lines (25 loc) · 779 Bytes
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
name: Push
on: [push]
jobs:
check-format:
uses: ./.github/workflows/format.yml
build:
if: github.ref == 'refs/heads/master'
uses: ./.github/workflows/build.yml
with:
version-suffix: ${{ github.sha }}
archive-suffix: ${{ github.sha }}
build-release:
if: startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/tags/nightly'
uses: ./.github/workflows/build.yml
with:
version-suffix: ''
archive-suffix: ${{ github.ref_name }}
nightly-release:
if: github.ref == 'refs/heads/master'
needs: build
uses: ./.github/workflows/nightly-release.yml
release:
if: startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/tags/nightly'
needs: build-release
uses: ./.github/workflows/release.yml