Skip to content

build(deps): Bump xunit from 2.8.0 to 2.8.1 in /tests/OrasProject.Ora… #55

build(deps): Bump xunit from 2.8.0 to 2.8.1 in /tests/OrasProject.Ora…

build(deps): Bump xunit from 2.8.0 to 2.8.1 in /tests/OrasProject.Ora… #55

# Copyright The ORAS Authors.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Deploy DocFX Documentation
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
permissions:
id-token: write
pages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Install DocFX
run: |
dotnet tool update -g docfx
- name: Build Documentation
run: |
cd docs
docfx metadata docfx.json
docfx build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_site
name: mydocs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: mydocs
preview: true
- name: Output the Documentation URL
run: >
echo "The link to the docs can be found here >>
${{steps.deployment.outputs.page_url}}">> $GITHUB_STEP_SUMMARY