Skip to content

Commit

Permalink
First working setup of automated changelogs for the deployment branch…
Browse files Browse the repository at this point in the history
…es (#6373)

Now we can improve the templates and apply various other refinements.
  • Loading branch information
Garanas authored Jul 29, 2024
1 parent 9dc74ad commit 2e7ecb5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 27 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ on:
reference:
required: true
type: choice
default: develop
description: The reference (branch or tag) to use to compile the changelog snippets from
options:
- develop
Expand All @@ -38,7 +37,6 @@ on:
reference:
required: true
type: string
default: develop
description: The reference (branch or tag) to use to compile the changelog snippets from

pull_request:
Expand All @@ -57,7 +55,6 @@ jobs:
uses: actions/checkout@v4
with:
path: scripts
ref: develop
sparse-checkout: |
.github/workflows/scripts
Expand All @@ -67,7 +64,6 @@ jobs:
path: fa
ref: ${{ inputs.reference }}
sparse-checkout: |
.github/workflows/scripts
changelog/snippets
- name: Update environment path
Expand All @@ -89,16 +85,15 @@ jobs:
uses: actions/checkout@v4
with:
path: scripts
ref: develop
sparse-checkout: |
.github/workflows/scripts
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.reference }}
path: fa
sparse-checkout: |
.github/workflows/scripts
changelog/snippets
- name: Update environment path
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Documentation - Build and deploy

on:
push:
branches: ['develop']
paths: ['docs/**']
branches: ['develop', 'deploy/fafdevelop', 'deploy/fafbeta', 'deploy/faf']
paths: ['docs/**', 'changelog/snippets/*.md']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -26,18 +24,20 @@ concurrency:
cancel-in-progress: true

jobs:
# Build job
changelog-develop:
name: Create changelog of FAF Develop
uses: ./.github/workflows/changelog.yaml
with:
reference: deploy/fafdevelop

changelog-beta:
name: Create changelog of FAF Beta
uses: ./.github/workflows/changelog.yaml
with:
reference: deploy/fafbeta

build:
name: Build the documentation
needs: [changelog-develop, changelog-beta]
runs-on: ubuntu-latest
defaults:
Expand All @@ -47,10 +47,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: develop
sparse-checkout: |
docs
# Retrieve the generated changelogs
- name: Download artifact changelog of FAF Develop
uses: actions/download-artifact@v4
with:
Expand All @@ -63,9 +63,9 @@ jobs:
name: changelog-fafbeta
path: docs/generated

# Merge the generated changelogs into the templates
- name: Append the generated changelogs
run: |
ls -Rla generated
cat generated/fafdevelop.md >> changelogs/fafdevelop.md
cat generated/fafbeta.md >> changelogs/fafbeta.md
Expand Down
5 changes: 4 additions & 1 deletion docs/changelogs/fafbeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ nav_order: 2
parent: Changelog
---

Open changes on FAF Beta Balance
<!--
This is a template, content is appended automatically based on changelog snippets.
-->

4 changes: 3 additions & 1 deletion docs/changelogs/fafdevelop.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ nav_order: 1
parent: Changelog
---

Open changes on FAF Develop
<!--
This is a template, content is appended automatically based on changelog snippets.
-->
12 changes: 0 additions & 12 deletions docs/development/start-here.md

This file was deleted.

0 comments on commit 2e7ecb5

Please sign in to comment.