Skip to content

Commit

Permalink
Merge pull request #4 from NaluKit/release/1.1.0
Browse files Browse the repository at this point in the history
improve action
  • Loading branch information
FrankHossfeld authored Jul 25, 2024
2 parents e9afe0e + ef487cb commit b1b8af6
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions .github/workflows/wiki-pages.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
name: WikiPages

on: [push]

name: Sync wiki
on:
push:
branches:
- main
paths:
- etc/wiki/**
# gollum:
# schedule:
# - cron: "8 14 * * *"
jobs:
build:
deploy-wiki:
if: github.ref == 'refs/heads/main'
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions4gh/configure-wiki@v1
- uses: actions4gh/deploy-wiki@v1
commit-wiki:
if: github.ref == 'refs/heads/main'
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
path: etc/wiki
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
repository: ${{ github.repository }}.wiki
path: wiki
- run: rm -rf wiki/.git
- uses: actions4gh/configure-wiki/reverse@v1
- uses: actions4git/add-commit-push@v1

0 comments on commit b1b8af6

Please sign in to comment.