Skip to content

Commit 6af490f

Browse files
authored
Fixed CI configuration: adapted folder structure (#539)
* Removed the 'ls' build; the folder is no longer generated Signed-off-by: Dscano <[email protected]> * Moved the folder from docs/v1/build to docs/v1. Signed-off-by: Dscano <[email protected]> * Fix gitignore Signed-off-by: Dscano <[email protected]> --------- Signed-off-by: Dscano <[email protected]>
1 parent 4afe103 commit 6af490f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/any-branch-uploads.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
2828
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2929
AWS_REGION: 'us-west-2'
30-
SOURCE_DIR: 'docs/v1/build'
30+
SOURCE_DIR: 'docs/v1'
3131
DEST_DIR: ci/${{ github.ref_name }} # only runs for push events

.github/workflows/main-branch-uploads.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ jobs:
2929
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
3030
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3131
AWS_REGION: 'us-west-2'
32-
SOURCE_DIR: 'docs/v1/build'
32+
SOURCE_DIR: 'docs/v1'
3333
DEST_DIR: docs/main
3434
- name: Prepare spec for upload to gh-pages
3535
run: |
3636
git checkout gh-pages
3737
mkdir -p spec
3838
rm -rf spec/main
39-
cp -r docs/v1/build spec/main
39+
cp docs/v1/P4Runtime-Spec.html spec/main
40+
cp docs/v1/P4Runtime-Spec.pdf spec/main
4041
- name: Upload spec to gh-pages
4142
uses: EndBug/add-and-commit@v9
4243
with:

.github/workflows/tag-uploads.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ jobs:
3131
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
3232
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3333
AWS_REGION: 'us-west-2'
34-
SOURCE_DIR: 'docs/v1/build'
34+
SOURCE_DIR: 'docs/v1/'
3535
DEST_DIR: docs/${{ github.ref_name }}
3636
- name: Prepare spec for upload to gh-pages
3737
run: |
3838
git checkout gh-pages
3939
mkdir -p spec
4040
rm -rf spec/$TAG
41-
cp -r docs/v1/build spec/$TAG
41+
cp docs/v1/P4Runtime-Spec.html spec/$TAG
42+
cp docs/v1/P4Runtime-Spec.pdf spec/$TAG
4243
- name: Upload spec to gh-pages
4344
uses: EndBug/add-and-commit@v9
4445
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Emacs
22
*~
3-
docs/v1/build/
43
.DS_Store
54
build
65
dist

docs/v1/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ images:
2727
soffice --convert-to png --outdir resources/figs resources/figs/*.odg > /dev/null 2>&1
2828

2929
build_spec_with_images: images all
30-
30+
3131
clean:
3232
/bin/rm -f ${SPEC}.pdf ${SPEC}.html

0 commit comments

Comments
 (0)