Skip to content

Commit

Permalink
Feature/Add Wiki auto publish job. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
othercodes authored Mar 31, 2023
1 parent 1999f9c commit 015cdc1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Connect DevOps Testing Library Tests
name: Publish Library

on:
push:
Expand All @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8 ]
python-version: [ '3.8' ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Connect DevOps Testing Library Tests
name: Tests

on:
push:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Wiki

on:
pull_request:
branches: [ master ]
types: [ closed ]

jobs:
publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Publish Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
path: "wiki/"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
1 change: 1 addition & 0 deletions wiki/Home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Welcome to the Connect DevOps Testing Library wiki!

0 comments on commit 015cdc1

Please sign in to comment.