Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions .github/workflows/asciidoctor-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,35 @@ env:
DEBIAN_FRONTEND: noninteractive

jobs:
build:
runs-on: ubuntu-22.04
configure:
name: Configure Github Pages Publishing
runs-on: intel-ubuntu-22.04
outputs:
enable_publish: ${{ steps.check.outputs.isfork == 'NO' }}
steps:
- id: check
name: Check if Fork
run: |
if [ "${{ github.repository }}" = "intel/compile-time-init-build" ]; then
echo "This is the main repository, **enabling publishing**" >> "$GITHUB_STEP_SUMMARY"
echo "isfork=NO" >> "$GITHUB_OUTPUT"
else
echo "This is a fork, **disabling publishing**" >> "$GITHUB_STEP_SUMMARY"
echo "isfork=YES" >> "$GITHUB_OUTPUT"
fi

build:
needs: configure
name: Build Documentation
runs-on: intel-ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Install asciidoctor
run: |
sudo apt update
sudo apt install -y asciidoctor
sudo gem install asciidoctor asciidoctor-diagram rouge

- name: Build documentation
run: |
mkdir -p ./generated-html
Expand All @@ -30,29 +46,26 @@ jobs:
touch ./generated-html/.nojekyll
ls -la ./generated-html
cat ./generated-html/index.html

- name: Setup github pages
if: needs.configure.outputs.enable_publish == 'true'
uses: actions/configure-pages@v3

- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: ./generated-html

deploy:
needs: build

needs: [configure, build]
if: needs.configure.outputs.enable_publish == 'true'
name: Deploy Documentation
permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: $${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-22.04

runs-on: intel-ubuntu-22.04
steps:
- name: Deploy to github pages
id: deployment
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/release_header.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ bug-free code. It allows variables and functions to advertise and enforce
requirements at compile-time. The requirements are guaranteed to be held
true at runtime.

[![CppCon 2023. Safe Arithmetic: Have your integer and add it to two!](https://img.youtube.com/vi/E1LfLQ13bgA/0.jpg)](https://www.youtube.com/watch?v=E1LfLQ13bgA)

## Pre-release Disclaimer

This library is a work in progress and should not yet be used in production.
Expand Down