-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (38 loc) · 1.05 KB
/
beta-release-gh.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
# This is a basic workflow to help you get started with Actions
name: Beta Release to Github Pages
# Controls when the workflow will run
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
if: github.repository == 'decooio/crust-files'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Merge main -> beta
uses: devmasx/[email protected]
with:
type: now
from_branch: main
target_branch: beta
github_token: ${{ secrets.DECOO_PAT }}
- name: Checkout beta branch
uses: actions/checkout@v2
with:
ref: beta
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: "18.19.0"
- name: Run install
run: yarn install
- name: Build
run: yarn export
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: beta-deploy
folder: out
target-folder: docs