mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2024-12-26 06:49:09 +01:00
Merge pull request #167 from LOLBAS-Project/features/github-action-improvements
Sync with LOLBAS-Project.github.io via GitHub Actions
This commit is contained in:
commit
57b66da28e
0
.yamllint → .github/.yamllint
vendored
0
.yamllint → .github/.yamllint
vendored
36
.github/workflows/gh-pages.yml
vendored
Normal file
36
.github/workflows/gh-pages.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
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 mv "$x" "${x/%\.yml/.md}"; done
|
||||||
|
mv yml/OSBinaries yml/Binaries
|
||||||
|
mv yml/OSLibraries yml/Libraries
|
||||||
|
mv yml/OSScripts yml/Scripts
|
||||||
|
|
||||||
|
- 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'
|
@ -1,6 +1,13 @@
|
|||||||
---
|
---
|
||||||
name: Yaml Lint
|
name: YAML Lint
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lintFiles:
|
lintFiles:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -9,4 +16,4 @@ jobs:
|
|||||||
- name: yaml-lint
|
- name: yaml-lint
|
||||||
uses: ibiqlik/action-yamllint@v3
|
uses: ibiqlik/action-yamllint@v3
|
||||||
with:
|
with:
|
||||||
config_file: .yamllint
|
config_file: .github/.yamllint
|
Loading…
Reference in New Issue
Block a user