-
Notifications
You must be signed in to change notification settings - Fork 999
37 lines (34 loc) · 1.08 KB
/
gh-pages.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: Update LOLBAS-Project.github.io
on:
push:
branches:
- master
paths:
- "yml/**.yml"
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v2
- name: Change .yml to .md
run: |
for x in $(find yml/ -name '*.yml'); do echo "---" >> "$x"; mv "$x" "${x/%\.yml/.md}"; done
mv yml/OSBinaries yml/Binaries
mv yml/OSLibraries yml/Libraries
mv yml/OSScripts yml/Scripts
rm -r yml/HonorableMentions
- name: Deploy to LOLBAS-Project.github.io repo
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: LOLBAS-Project/LOLBAS-Project.github.io
publish_branch: master
publish_dir: yml
destination_dir: _lolbas
enable_jekyll: true
keep_files: false
commit_message: "Applying update "
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'