-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 898 Bytes
/
ci.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: Build and deploy
on:
push:
branches:
- master
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@master
- name: Install 🔧
run: npm ci --prefer-offline --no-audit
- name: Build 🏗️
run: |
npm run build
- name: Deploy to external repository
uses: pavletto/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: build
destination-github-username: openglobus
destination-repository-name: openglobus.github.io
user-email: github-actions[bot]@users.noreply.github.com
target-branch: master