-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.4 KB
/
push-main-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
name: Main Push
on:
workflow_dispatch:
inputs:
checks:
type: boolean
required: false
default: true
release:
type: boolean
required: false
default: true
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release-checks:
if: ${{ github.event.inputs.checks == '' || inputs.checks == true }}
name: ${{ matrix.runs-on }}
uses: ./.github/workflows/call-checks.yml
strategy:
matrix:
runs-on:
- ubuntu-latest
# - windows-latest
# - macos-latest
with:
runs-on: ${{ matrix.runs-on }}
release:
if: ${{ !failure() && !cancelled() && (github.event.inputs.release == '' || inputs.release == true) }}
name: Release
uses: ./.github/workflows/call-release.yml
needs: [release-checks]
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# @note Using Personal Access Token here to ensure
# the creation of the PR triggers Checks workflows
# as was observed with this PR
# https://github.com/zaripych/repka/pull/34
# the checks wouldn't be triggered otherwise
PAT_GITHUB: ${{ secrets.PAT_GITHUB }}