-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.15 KB
/
decentralized.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
# .github/workflows/publish.yml
name: Generate a build of decentralized-stable and push to another branch
on:
push:
branches:
- "decentralized-stable"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
uses: actions/checkout@v2
- name: setup node.js
uses: actions/[email protected]
with:
node-version: 18.x
# cache: yarn
# cache-dependency-path: yarn.lock
- name: dep
run: yarn
- name: build
run: yarn build
- name: Generate Docs
run: npx typedoc --out docs src/index.ts
- name: prepare package
run: mkdir out && mv package.json out && mv dist out && mv README.md out && mv LICENSE out && mv docs out
- name: Prepare Production Release
uses: s0/git-publish-subdir-action@develop
if: ${{ github.ref == 'refs/heads/decentralized-stable' }}
env:
REPO: self
BRANCH: decentralized-bleeding-edge
FOLDER: out
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"