-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.36 KB
/
deploy.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy
on:
workflow_dispatch:
schedule:
- cron: "1 */12 * * *"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Execute
shell: bash
env:
JAPAN_AIP_PWD: ${{ secrets.JAPAN_AIP_PWD }}
JAPAN_AIP_USERID: ${{secrets.JAPAN_AIP_USERID }}
run: ./aiploader
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add --all
git commit --allow-empty -m "Update AIPs" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.TOKEN }}
external_repository: NagoDede/fly-out.fr
destination_dir: ./content/english/aip/japan/documents
publish_dir: //tmp/AipPages/Japan/merge
keep_files: true
user_name: NagoDede
user_email: [email protected]
publish_branch: master
# cname: example.com