Skip to content

Merge pull request #2646 from brandingbrand/deemaabdallah-patch-1 #27

Merge pull request #2646 from brandingbrand/deemaabdallah-patch-1

Merge pull request #2646 from brandingbrand/deemaabdallah-patch-1 #27

Workflow file for this run

# Workflow for building and deploying Flagship Code™ Docs to GitHub Pages
#
name: Deploy Flagship Code™ Docs to Pages
on:
push:
branches: [main]
workflow_dispatch:
# No inputs
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
env:
BUILD_PATH: "./docs"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v3
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3
with:
node-version: v18.x
- name: Setup Pages
id: pages
uses: actions/configure-pages@fc89b04e7d263ef510d9e77d3a1d088fb2688522 # pin@v3
- name: Install dependencies
run: yarn install
working-directory: ${{ env.BUILD_PATH }}
- name: Build with Astro
run: |
yarn astro build \
--site "${{ steps.pages.outputs.origin }}" \
--base "${{ steps.pages.outputs.base_path }}"
working-directory: ${{ env.BUILD_PATH }}
- name: Upload artifact
uses: actions/upload-pages-artifact@253fd476ed429e83b7aae64a92a75b4ceb1a17cf # pin@v1
with:
path: ${{ env.BUILD_PATH }}/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@497da40f5225e762159b457c9ae5d6f75a136f5c # pin@v1