-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (37 loc) · 1.02 KB
/
push.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
name: Deploy to GitHub Pages
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
uses: khanhicetea/gh-actions-hugo-deploy-gh-pages@master
env:
GITHUB_BRANCH: gh-pages
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
HUGO_VERSION: "0.110.0"
Push:
needs: Build
runs-on: ubuntu-latest
steps:
- name: Push
uses: actions/checkout@v3
with:
clean: true
repository: sysarmy/sysarmy.github.io
ref: master
ssh-key: ${{ secrets.SYSARMYDEPLOYKEY }}
- run: |
git config user.name github-actions
git config user.email [email protected]
git submodule update --init --recursive
git submodule update --remote
git add .
git commit -m "Automated deployment to GitHub Pages for commit: ${{ github.sha }}"
git push