Skip to content

ci(codecov): change codecov argument due to upgrade to v5 (#169) #77

ci(codecov): change codecov argument due to upgrade to v5 (#169)

ci(codecov): change codecov argument due to upgrade to v5 (#169) #77

# 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