Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic generation and prep of docs to be deployed with github pages #5

Merged
merged 66 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
15a9ebf
first attempt at automated docs generation and deployment
PhilipCramer May 8, 2024
07c2c48
added missing uses keys
PhilipCramer May 8, 2024
e31c56f
fixed env variables
PhilipCramer May 8, 2024
9cda223
switched to run on push to experiment branch
PhilipCramer May 8, 2024
b2e8eca
removed wrongly placed env variables
PhilipCramer May 8, 2024
b847b1c
removed use of env
PhilipCramer May 8, 2024
75e1a05
env fix?
PhilipCramer May 8, 2024
7ed4640
docs not getting moved correctly?
PhilipCramer May 8, 2024
c022771
hopefully fixed shit this time
PhilipCramer May 8, 2024
b59deca
docs should now be correctly placed in ./docs
PhilipCramer May 8, 2024
0f2df62
fix version issue
PhilipCramer May 8, 2024
bae84cc
fix version issue
PhilipCramer May 8, 2024
1220b24
created docs folder
PhilipCramer May 8, 2024
6b119f6
changes to update docs step
PhilipCramer May 8, 2024
834b4a1
Automatic docs generation
May 8, 2024
d658698
move entire ./doc/ to ./docs/
PhilipCramer May 8, 2024
d9928eb
Merge branch 'docs-CI-CD' of github:PhilipCramer/logpoint_api into do…
PhilipCramer May 8, 2024
626edd0
move entire ./doc/ to ./docs
PhilipCramer May 8, 2024
4c93387
Automatic docs generation
May 8, 2024
7d23777
only add html files to ./docs/
PhilipCramer May 8, 2024
9b805e8
Automatic docs generation
May 8, 2024
c6f21ae
final form of workflow?
PhilipCramer May 8, 2024
9f06f3f
workflow now only runs on pull requests to main
PhilipCramer May 8, 2024
0a22c47
removed documentation
PhilipCramer May 8, 2024
bbc0707
added git tree check befor committing
PhilipCramer May 8, 2024
024e0fe
changed how condition is evaluated
PhilipCramer May 8, 2024
48a13e0
added the docs folder again
PhilipCramer May 8, 2024
4bf4c15
Automatic docs generation
May 8, 2024
cdcd506
Merge pull request #2 from PhilipCramer/docs-CI-CD
PhilipCramer May 8, 2024
7105c2e
now copies all of doc folder to docs for pages deployment
PhilipCramer May 8, 2024
2b732c6
now copies all of doc folder to docs
PhilipCramer May 8, 2024
d4f7d37
Automatic docs generation
May 8, 2024
b69939c
now overwrites all of doc folder to docs
PhilipCramer May 8, 2024
c389999
Merge branch 'pages-optimization' of github:PhilipCramer/logpoint_api…
PhilipCramer May 8, 2024
3d75a0b
now uses rsync instead of mv to place docs correctly for pages genera…
PhilipCramer May 9, 2024
64ff9ca
Automatic docs generation
May 9, 2024
7f8fc63
Automatic docs generation
May 9, 2024
59b278d
fixed so .epub files are not included
PhilipCramer May 9, 2024
671b93c
Merge branch 'pages-optimization' of github:PhilipCramer/logpoint_api…
PhilipCramer May 9, 2024
e04a993
removed docs to check generation works
PhilipCramer May 9, 2024
b73ddae
Automatic docs generation
May 9, 2024
eb4fcef
changed commit to be made by github-actions[bot]
PhilipCramer May 9, 2024
c8d8be7
Merge branch 'pages-optimization' of github:PhilipCramer/logpoint_api…
PhilipCramer May 9, 2024
11abceb
removed docs to check generation works
PhilipCramer May 9, 2024
f22c92a
Automatic docs generation
github-actions[bot] May 9, 2024
df797ab
Merge pull request #3 from PhilipCramer/pages-optimization
PhilipCramer May 9, 2024
f0e9da2
moved documentation to seperate branch and as such action to seperate…
PhilipCramer May 10, 2024
0cf9875
moved documentation.yml to workflows folder
PhilipCramer May 10, 2024
f162c8f
moved documentation.yml to workflows folder
PhilipCramer May 10, 2024
b2d0f71
removed obsolete job dependency
PhilipCramer May 10, 2024
373e2ee
Merge pull request #4 from MikaelFangel/main
PhilipCramer May 10, 2024
7b09b10
now cancels other workflows when new it started
PhilipCramer May 10, 2024
e94444b
Merge branch 'main' of github:PhilipCramer/logpoint_api
PhilipCramer May 10, 2024
de27bf1
updated permissions for runner
PhilipCramer May 10, 2024
a2c67b7
changed to use ad-m/github-push-action@master
PhilipCramer May 10, 2024
998786e
Automatic docs generation
github-actions[bot] May 10, 2024
b9e0037
changed to use ad-m/github-push-action@master
PhilipCramer May 10, 2024
d74bb7a
Automatic docs generation
github-actions[bot] May 10, 2024
2f3c26e
removed docs from main
PhilipCramer May 10, 2024
900a471
changed push method
PhilipCramer May 10, 2024
1a47d7e
changed push method
PhilipCramer May 10, 2024
9c9c690
changed push method
PhilipCramer May 10, 2024
0b53bb9
changed push method
PhilipCramer May 10, 2024
5f86b5e
changed push method
PhilipCramer May 10, 2024
7d53842
changed push method
PhilipCramer May 10, 2024
6685285
added /docs/ again
PhilipCramer May 10, 2024
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
56 changes: 56 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Documentation CI

on:
push:
branches: [ "main" ]


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

documentation:
name: Update documentation
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
- name: Set up Elixir
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
with:
elixir-version: '1.15.2' # [Required] Define the Elixir version
otp-version: '26.0' # [Required] Define the Erlang/OTP version

- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-

- name: Install dependencies
run: mix deps.get

- name: Generate Documentation
run: mix docs

- name: Include docs folder
run: |
sed -i '/\/docs\//d' .gitignore

- name: Commit changes to documentation branch
env:
ATTR_NAME: 'github-actions[bot]'
ATTR_EMAIL: 'github-actions[bot]@users.noreply.github.com'
run: |
git config --global user.name $ATTR_NAME
git config --global user.email $ATTR_EMAIL
git add docs/*
git commit -am "Automatic docs generation"
git fetch origin docs
git push origin main:docs --force-with-lease
10 changes: 5 additions & 5 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
name: Elixir CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:

name: Build and test
runs-on: ubuntu-latest

Expand All @@ -37,3 +36,4 @@ jobs:
run: mix deps.get
- name: Run tests
run: mix test

Loading