-
Notifications
You must be signed in to change notification settings - Fork 51
40 lines (34 loc) · 1.07 KB
/
publish.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
---
name: Publish Website
on:
push:
branches:
- devel
- 'release-*'
permissions: {}
jobs:
publish:
name: Build and Publish
if: github.repository_owner == 'submariner-io'
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
with:
fetch-depth: 0
- name: Create secret key to git push
run: |
echo '=================== Create deploy key to push ==================='
set -x
mkdir $HOME/.ssh
ssh-keyscan -t rsa github.com > $HOME/.ssh/known_hosts
echo "${GIT_DEPLOY_KEY}" > $HOME/.ssh/id_rsa
chmod 400 $HOME/.ssh/id_rsa
git config --global user.email "submariner@website-ci"
git config --global user.name "Submariner Website CI"
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
- name: Build the website static files for each release
run: make static-all
- name: Push the updated static files
run: ./scripts/publish