Skip to content

Commit

Permalink
Merge pull request #820 from OutSystems/GitHubDocGenPub
Browse files Browse the repository at this point in the history
Create DocsGenDeployManually.yml
  • Loading branch information
gnbm committed Sep 27, 2023
2 parents dd9b597 + 51b75e5 commit 2f4d479
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/DocsGenDeployManually.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: docs-generate-deploy-manually

on:
workflow_dispatch:

jobs:
compile-prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main

- run: npm install

- name: Compile Prod
run: npm run build

- name: Git Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Compiled Production Mode [skip ci]

update-doc:
needs: compile-prod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
token: ${{ secrets.PAT }}

- uses: actions/setup-node@v3

- run: npm install

- name: Install graphviz
run: sudo apt install -y graphviz

- run: npm run docs

- name: Git Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update documentation [skip ci]

deploy-doc:
needs: update-doc
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: main

- uses: actions/setup-node@v3

- name: Push files into github page
uses: GuillaumeFalourd/copy-push-files@v1

with:
source_files: docs/*
remote_repository: https://github.com/outsystems-ui-docs/outsystems-ui-docs.github.io
access_token: ${{ secrets.UICOMPONENTSDOCS }}
target_branch: main
commit_message: Deploy documentation.

0 comments on commit 2f4d479

Please sign in to comment.