generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (35 loc) · 1.32 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
name: 🚀 Snapshots
on:
push:
branches: [main, 'v[0-9]+.x']
jobs:
snapshots:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
with:
validate-peer-deps: false
- run: npx nx build-gh-pages editor-demo
- run: tree ${{ env.DIST }} -P '*.html'
- name: Publish next snapshots
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 }}
- id: info
run: |
echo "version=$(node -p "require('./projects/tui-editor/package.json').version.split('.')?.[0]")" >> $GITHUB_OUTPUT
- name: Publish v${{ steps.info.outputs.version }}.x snapshots
uses: s0/[email protected]
env:
REPO: self
FOLDER: ${{ env.DIST }}
BRANCH: snapshots/demo/v${{ steps.info.outputs.version }}.x
GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
concurrency:
group: snapshots-${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true