This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (76 loc) · 2.09 KB
/
release.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Release
on:
push:
branches:
- master
- next
- alpha
jobs:
setup:
name: Setup
runs-on: ubuntu-18.04
if: "!contains(github.event.commits[0].message, '[skip ci]')"
steps:
- name: Checkout
id: setup-1
uses: actions/checkout@v1
- name: Install Nix
id: setup-2
uses: cachix/install-nix-action@v12
with:
skip_adding_nixpkgs_channel: true
- name: Cachix
id: setup-3
uses: cachix/cachix-action@v8
with:
name: tal-talismanpkgs-rel
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Download Nix Dependenices
id: setup-4
run: |
nix-shell --pure shell.release.nix
release:
name: Release
needs: setup
runs-on: ubuntu-18.04
if: "!contains(github.event.commits[0].message, '[skip ci]')"
steps:
- name: Checkout
id: release-1
uses: actions/checkout@v1
- name: Install Nix
id: release-2
uses: cachix/install-nix-action@v12
- name: Cachix
id: release-3
uses: cachix/cachix-action@v8
with:
name: tal-talismanpkgs-rel
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Install Node.js dependencies
id: release-4
run: |
nix-shell --run "npm ci" shell.release.nix
- name: Release
id: release-5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
nix-shell --run "npm run release" shell.release.nix
merge:
name: Merge
needs: release
runs-on: ubuntu-18.04
if: "!contains(github.event.commits[0].message, '[skip ci]') && (contains(github.ref, 'master') || contains(github.ref, 'alpha'))"
steps:
- name: Checkout
id: merge-1
uses: actions/checkout@v1
- name: "Merge ${{ github.ref }} -> next"
id: merge-2
uses: devmasx/merge-branch@v1.3.1
with:
type: now
target_branch: next
github_token: ${{ github.token }}