diff --git a/.github/workflows/.docs.yml b/.github/workflows/.docs.yml new file mode 100644 index 0000000..d79411c --- /dev/null +++ b/.github/workflows/.docs.yml @@ -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 }}