Skip to content

Commit dde0a71

Browse files
committed
add cppcon 2023 open content screen recording to readme
1 parent ca6650d commit dde0a71

File tree

3 files changed

+27
-61
lines changed

3 files changed

+27
-61
lines changed

.github/workflows/asciidoctor-ghpages.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,35 @@ env:
99
DEBIAN_FRONTEND: noninteractive
1010

1111
jobs:
12-
build:
13-
runs-on: ubuntu-22.04
12+
configure:
13+
name: Configure Github Pages Publishing
14+
runs-on: intel-ubuntu-22.04
15+
outputs:
16+
enable_publish: ${{ steps.check.outputs.isfork == 'NO' }}
17+
steps:
18+
- id: check
19+
name: Check if Fork
20+
run: |
21+
if [ "${{ github.repository }}" = "intel/compile-time-init-build" ]; then
22+
echo "This is the main repository, **enabling publishing**" >> "$GITHUB_STEP_SUMMARY"
23+
echo "isfork=NO" >> "$GITHUB_OUTPUT"
24+
else
25+
echo "This is a fork, **disabling publishing**" >> "$GITHUB_STEP_SUMMARY"
26+
echo "isfork=YES" >> "$GITHUB_OUTPUT"
27+
fi
1428
29+
build:
30+
needs: configure
31+
name: Build Documentation
32+
runs-on: intel-ubuntu-22.04
1533
steps:
1634
- name: Checkout source
1735
uses: actions/checkout@v4
18-
1936
- name: Install asciidoctor
2037
run: |
2138
sudo apt update
2239
sudo apt install -y asciidoctor
2340
sudo gem install asciidoctor asciidoctor-diagram rouge
24-
2541
- name: Build documentation
2642
run: |
2743
mkdir -p ./generated-html
@@ -30,29 +46,26 @@ jobs:
3046
touch ./generated-html/.nojekyll
3147
ls -la ./generated-html
3248
cat ./generated-html/index.html
33-
3449
- name: Setup github pages
50+
if: needs.configure.outputs.enable_publish == 'true'
3551
uses: actions/configure-pages@v3
36-
3752
- name: Upload artifacts
3853
uses: actions/upload-pages-artifact@v2
3954
with:
4055
path: ./generated-html
4156

4257
deploy:
43-
needs: build
44-
58+
needs: [configure, build]
59+
if: needs.configure.outputs.enable_publish == 'true'
60+
name: Deploy Documentation
4561
permissions:
4662
contents: read
4763
pages: write
4864
id-token: write
49-
5065
environment:
5166
name: github-pages
5267
url: $${{ steps.deployment.outputs.page_url }}
53-
54-
runs-on: ubuntu-22.04
55-
68+
runs-on: intel-ubuntu-22.04
5669
steps:
5770
- name: Deploy to github pages
5871
id: deployment

.github/workflows/release_header.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ bug-free code. It allows variables and functions to advertise and enforce
55
requirements at compile-time. The requirements are guaranteed to be held
66
true at runtime.
77

8+
[![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)
9+
810
## Pre-release Disclaimer
911

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

0 commit comments

Comments
 (0)