-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.39 KB
/
main.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
on: [push]
jobs:
build-examples:
name: Build and deploy examples
runs-on: ubuntu-latest
steps:
- name: Build example1
uses: adamws/github-pages-generator@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
username: 'actions'
output_dir: ./output/example1
- name: Build example2
uses: adamws/github-pages-generator@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}
output_dir: ./output/example2
colorscheme: f0f5f4,00ab91,f0f5f4,0d1117,005182
ignore_repositories: adamws.github.io,ci-sandbox
skip_footer: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./output
force_orphan: true
run-data-only-mode:
name: Get user repositories data
runs-on: ubuntu-latest
steps:
- uses: adamws/github-pages-generator@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.actor }}
ignore_repositories: adamws.github.io,ci-sandbox
output_dir: ./output
data_only: true
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
path: ./output/*.json
retention-days: 5