mirror of
https://github.com/apple/container.git
synced 2026-07-12 12:37:02 +00:00
3376fa8017
Bumps the github-actions group with 2 updates: - Updates `actions/configure-pages` from 5 to 6 - Updates `actions/deploy-pages` from 4 to 5 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 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
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
checkBranch:
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release')
|
|
steps:
|
|
- name: Branch validation
|
|
env:
|
|
REF_NAME: ${{ github.ref_name }}
|
|
run: echo "Branch ${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@v5
|