Skip to content

Commit

Permalink
Update deploy-documents.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shyunMin authored Sep 5, 2024
1 parent d5f500f commit 8aca765
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/deploy-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,51 @@ on:
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-20.04
container:
image: tizendotnet/tizenfx-build-worker:2.5
options: --ulimit nofile=10240:10240

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET 6.x
uses: actions/setup-dotnet@v3
with:
repository: TizenAPI/TizenFX-Docs
dotnet-version: '6.x'
- name: Display dotnet version
run: dotnet --version

- name: Checkout TizenFX sources
- name: Install dotnet tools
run: dotnet tool install -g docfx --version 2.61.0

- name: Disply doxfx version
run: |
docfx --version
dotnet --list-sdks
- name: Git clone TizenFX
uses: actions/checkout@v3
with:
repository: shyunMin/TizenFX
ref: 'tizenfx-docs'

- name: Clone TizenFX sources
run: |
./build.sh clone
- name: Cache DocFX output
id: cache-site
uses: actions/cache@v2
with:
path: _site
key: docfx-gh-pages-site-${{ hashFiles('repos/commits') }}

- name: Build Documents
- name: Build TizenFX sources
if: steps.cache-site.outputs.cache-hit != 'true'
run: |
run: |
./build.sh restore
./build.sh build
./build.sh index
- name: Archive Artifacts
run: |
tar cfz site.tar.gz _site/
Expand Down

0 comments on commit 8aca765

Please sign in to comment.