| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,40 @@ | |||
| 1 | + name: Documentation | ||
| 2 | + | ||
| 3 | + on: [push, pull_request] | ||
| 4 | + | ||
| 5 | + jobs: | ||
| 6 | + build: | ||
| 7 | + runs-on: ubuntu-latest | ||
| 8 | + steps: | ||
| 9 | + - uses: actions/checkout@v1 | ||
| 10 | + - name: Doxygen Action | ||
| 11 | + uses: mattnotmitt/doxygen-action@1.9.4 | ||
| 12 | + with: | ||
| 13 | + working-directory: "doc/" | ||
| 14 | + | ||
| 15 | + - name: Build Sphinx documentation | ||
| 16 | + run: | | ||
| 17 | + pip install -r doc/requirements.txt | ||
| 18 | + sphinx-build doc/source/ ./doc/build/html/ | ||
| 19 | + | ||
| 20 | + - name: Upload artifact | ||
| 21 | + # Automatically uploads an artifact from the './_site' directory by default | ||
| 22 | + uses: actions/upload-pages-artifact@v1 | ||
| 23 | + with: | ||
| 24 | + path: doc/build/html/ | ||
| 25 | + | ||
| 26 | + deploy: | ||
| 27 | + if: github.ref == 'refs/heads/release' | ||
| 28 | + runs-on: ubuntu-latest | ||
| 29 | + permissions: | ||
| 30 | + contents: read | ||
| 31 | + pages: write | ||
| 32 | + id-token: write | ||
| 33 | + environment: | ||
| 34 | + name: github-pages | ||
| 35 | + url: ${{ steps.deployment.outputs.page_url }} | ||
| 36 | + needs: build | ||
| 37 | + steps: | ||
| 38 | + - name: Deploy to GitHub Pages | ||
| 39 | + id: deployment | ||
| 40 | + uses: actions/deploy-pages@v1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | <AssemblyProduct>Python.NET</AssemblyProduct> | |
| 7 | 7 | <LangVersion>10.0</LangVersion> | |
| 8 | 8 | <IsPackable>false</IsPackable> | |
| 9 | - <FullVersion>$([System.IO.File]::ReadAllText("version.txt").Trim())</FullVersion> | ||
| 9 | + <FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion> | ||
| 10 | 10 | <VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix> | |
| 11 | 11 | <VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix> | |
| 12 | 12 | </PropertyGroup> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + doxygen_xml/ | ||
| 2 | + build/ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments