forked from visualpartnership/my_launchx_blog
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 946 Bytes
/
build_launchx_blog.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
name: Build Personal Blog
on: push
jobs:
build:
name: Build and update website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup GoHugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.92.0'
- name: Commit Update
run: |
echo ":: Eliminando versión previa ::"
rm -rf docs
- name: Build drafts
run: hugo -D
- name: Commit Update
run: |
echo ":: Renombrando nueva version ::"
mv public/ docs/
git config --global user.email "launchx@innovaccion.mx"
git config --global user.name "Launch X Backend Node JS"
git add .
git commit -m "GitHub Actions: Build ok"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}