mirror of
https://github.com/apple/container.git
synced 2026-07-13 21:17:05 +00:00
d4e01c6579
This removes the ability to deploy docs on the main branch and instead only allows docs deployment on either a tag or a release branch. Docs are also built (but not deployed) in the common job run by the build and release pipelines. Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
# Manual workflow for releasing docs ad-hoc. Workflow can only be run for main or release branches.
|
|
# Workflow does NOT publish a release of container.
|
|
name: Deploy application website
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
checkBranch:
|
|
runs-on: ubuntu-latest
|
|
if: startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release')
|
|
steps:
|
|
- name: Branch validation
|
|
run: echo "Branch ${{ github.ref_name }} is allowed"
|
|
|
|
buildSite:
|
|
name: Build application website
|
|
needs: checkBranch
|
|
uses: ./.github/workflows/common.yml
|
|
secrets: inherit
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
pages: write
|
|
|
|
deployDocs:
|
|
runs-on: ubuntu-latest
|
|
needs: [checkBranch, buildSite]
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|