Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 53659f6

Browse files
authored
Merge pull request #120 from EraYaN/master
Made GitHub Releases trigger on BuildCompletion, added update submodules command and add publish script for VPS.
2 parents fea2ea4 + 170a867 commit 53659f6

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

.ci/azure-pipelines.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
submodules: true
1818
persistCredentials: true
1919

20+
- task: CmdLine@2
21+
displayName: "Update submodules"
22+
inputs:
23+
script: 'git submodule update --recursive --remote'
24+
workingDirectory: '$(Build.SourcesDirectory)'
25+
2026
- task: PowerShell@2
2127
displayName: "DocFX Build"
2228
inputs:
@@ -25,7 +31,7 @@ jobs:
2531
workingDirectory: '$(Build.SourcesDirectory)'
2632

2733
- task: ArchiveFiles@2
28-
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'))
34+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
2935
displayName: "Package Documentation Website"
3036
inputs:
3137
rootFolderOrFile: '$(Build.SourcesDirectory)/_site'
@@ -38,7 +44,7 @@ jobs:
3844
#quiet: # Optional
3945

4046
- task: GitHubRelease@0
41-
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'))
47+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
4248
displayName: "Create GitHub release"
4349
inputs:
4450
gitHubConnection: Jellyfin Release Download

.ci/publish-to-gh-pages.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Download the latest release.
4+
curl -s https://api.github.com/repos/jellyfin/jellyfin-docs/releases/latest | grep "browser_download_url.*docs-.*\.tar\.gz" | cut -d : -f 2,3 | tr -d \" | wget -O /tmp/docs.tar.gz -qi -
5+
# Clean any old files
6+
rm -rf docs/
7+
8+
mkdir -p docs/
9+
pushd docs
10+
# Extract the files
11+
tar -xzf /tmp/docs.tar.gz
12+
popd
13+
git add docs/
14+
git commit -m "CI Documentation update"
15+
git push origin

0 commit comments

Comments
 (0)