Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shyunMin committed Jun 19, 2024
1 parent b20ef0f commit 0550a54
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- master
- DevelNUI
- API*
- test-actions

paths:
- 'build/**'
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/deploy-documents-latest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: "Deploy Documents Latest"

on:
push:
branches:
- test-actions

jobs:

build:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/deploy-documents-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "Deploy Documents Legacy"

on:
push:
branches:
- test-actions

jobs:

build:
runs-on: [self-hosted, linux, x64]
container:
image: tizendotnet/tizenfx-build-worker:2.4
options: --ulimit nofile=10240:10240

steps:
- uses: actions/checkout@v3
with:
repository: TizenAPI/TizenFX-Docs

- name: Checkout TizenFX sources
run: |
./build_legacy.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
if: steps.cache-site.outputs.cache-hit != 'true'
run: |
./build_legacy.sh restore
./build_legacy.sh build
- name: Archive Artifacts
run: |
tar cfz site.tar.gz _site/
- uses: actions/upload-artifact@v2
with:
name: documents
path: site.tar.gz

deploy:
needs: [build]
runs-on: ubuntu-20.04

steps:
- uses: actions/download-artifact@v2
with:
name: documents

- name: Extract Artifacts
run: |
tar xfz site.tar.gz
- name: Deploy GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
keep_files: true
publish_branch: gh-pages
user_name: 'TizenAPI-Bot'
user_email: '[email protected]'
full_commit_message: 'Update documents'
5 changes: 0 additions & 5 deletions .github/workflows/deploy-documents-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: "Deploy Documents Test"

on:
push:
branches:
- test-actions

jobs:

build:
Expand Down

0 comments on commit 0550a54

Please sign in to comment.