-
Notifications
You must be signed in to change notification settings - Fork 472
54 lines (47 loc) · 1.75 KB
/
snapshots.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
49
50
51
52
53
54
name: 🚀 Snapshots
on:
push:
branches: [main, 'v[0-9]+.x', 'release/**']
workflow_dispatch:
inputs:
updateMain:
type: boolean
required: false
description: update main snapshots
jobs:
next-snapshot:
name: Push next snapshot
if: ${{ !contains(github.head_ref || github.ref_name, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build demo # Don't use prerender please, because it's flaky for e2e
- run: tree ${{ env.DIST }} -P '*.html'
- uses: s0/[email protected]
env:
REPO: self
FOLDER: ${{ env.DIST }}
BRANCH: snapshots/demo/next/${{ github.head_ref || github.ref_name }}
GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
production-snapshot:
name: Push production snapshot
if: ${{ contains(github.head_ref || github.ref_name, 'release/') || github.event.inputs.updateMain == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
id: nodejs-workspace
- run: npx nx prerender demo
- run: tree ${{ env.DIST }} -P '*.html'
- uses: s0/[email protected]
env:
REPO: self
FOLDER: ${{ env.DIST }}
BRANCH: snapshots/demo/v${{ steps.nodejs-workspace.outputs.root-package-major-version }}.x
GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true