From 8aca765ee0445a19b9af573f8e1973e0b063b41e Mon Sep 17 00:00:00 2001 From: shmin Date: Thu, 5 Sep 2024 18:25:50 +0900 Subject: [PATCH] Update deploy-documents.yml --- .github/workflows/deploy-documents.yml | 37 +++++++++++++++++++------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-documents.yml b/.github/workflows/deploy-documents.yml index 599507d8d21..ea3a5d202ab 100644 --- a/.github/workflows/deploy-documents.yml +++ b/.github/workflows/deploy-documents.yml @@ -4,21 +4,37 @@ 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 @@ -26,12 +42,13 @@ jobs: 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/