Create .docs.yml

This commit is contained in:
Samuel Lorch 2021-09-09 09:07:55 +02:00 committed by GitHub
parent 7f29cb4464
commit ee71120fea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
.github/workflows/.docs.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Go
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: go build -v ./...
- name: Update Wiki
run: |
mkdir doc
./go-passbolt-cli gendoc
- name: Upload Documentation to Wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
path: "doc"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}