-
Notifications
You must be signed in to change notification settings - Fork 105
38 lines (36 loc) · 1.04 KB
/
main.yml
File metadata and controls
38 lines (36 loc) · 1.04 KB
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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# Include asciidoctor-action and run the cli tool
# - uses: jshingler/asciidoctor-action@master
# with:
# args: |
# ./jim.sh
- name: Generate Artifacts
run: |
pwd
ls -la
./gradlew asciidoctor
- name: Prepare to push generated artifacts back to the repo
run: |
ls -la
git config --global user.email "shinglerjim@gmail.com"
git config --global user.name "Jim Shingler"
git status
git add .
git status
git commit -m "CI:publish artifacts: `date`"
git status
- name: Push changes Master
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Push changes gh-pages
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages