Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj0824 authored Oct 31, 2023
0 parents commit d182d84
Show file tree
Hide file tree
Showing 37 changed files with 2,088 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WORKFLOW_TYPE='gh-pages'
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'README.md'
- 'overrides/**'
- 'docs/**'
- 'mkdocs.yml'
- 'requirements.txt'

permissions:
contents: write
pages: write
id-token: write

jobs:
deploy:
uses: ObsidianPublisher/actions/.github/workflows/deploy.yml@main
secrets:
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Index Creation

on:
workflow_dispatch:
inputs:
category_name:
type: string
required: true
description: "The new folder name"
path:
type: string
required: false
description: "The path of the new folder. Ex: category/subcategory"
description:
type: string
required: false
description: "The description of the category."
toc_hide:
type: boolean
required: false
description: "Hide the toc in the index file."
nav_hide:
type: boolean
required: false
description: "Hide the navigation menu in the index file."
dry_run:
type: boolean
required: false
description: "Do not create new category index, just log."

jobs:
run:
uses: ObsidianPublisher/actions/.github/workflows/index.yml@main
with:
category_name: ${{ inputs.category_name}}
path: ${{ inputs.path}}
description: ${{ inputs.description}}
toc_hide: ${{ inputs.toc_hide}}
nav_hide: ${{ inputs.nav_hide}}
dry_run: ${{ inputs.dry_run}}
secrets:
GH_PAT: ${{ secrets.GITHUB_TOKEN }}

14 changes: 14 additions & 0 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Repository maintenance

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
maintenance:
uses: ObsidianPublisher/actions/.github/workflows/maintenance.yml@main
with:
CLEAN: true
DRY_RUN: false
secrets:
GH_PAT: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Get latest release from template
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update:
uses: ObsidianPublisher/actions/.github/workflows/update.yml@main
with:
AUTO_MERGE: false
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode/settings.json
desktop.ini
Pipfile
Pipfile.lock
Loading

0 comments on commit d182d84

Please sign in to comment.