Skip to content

Commit 7708455

Browse files
ci: add prod and stag environments and tag trigger
This extra trigger will determine whether or the job is production or staging.
1 parent 98657e4 commit 7708455

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/many--nix-flake-check.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ name: Nix Flake Checks
66
# on your README showing the quality of your work.
77

88
on:
9-
push:
10-
branches: [main, master, release, development]
119
pull_request:
1210
branches: [main, master, release, development]
1311
types: [opened, synchronize, reopened]
12+
push:
13+
branches: [main, master, release, development]
14+
tags: [v*.*.*]
1415

1516
jobs:
1617

@@ -36,6 +37,7 @@ jobs:
3637
timeout-minutes: 10
3738
needs: build-nix-flake-check-matrix
3839
runs-on: ${{ matrix.os }}
40+
environment: ${{ github.ref_type == 'tag' && 'production' || 'staging' }}
3941
strategy:
4042
fail-fast: false
4143
matrix: ${{fromJSON(needs.build-nix-flake-check-matrix.outputs.matrix)}}

0 commit comments

Comments
 (0)