Skip to content

Commit 00b3847

Browse files
committed
Update fafbeta changelog as well
1 parent 87351b5 commit 00b3847

1 file changed

Lines changed: 40 additions & 11 deletions

File tree

.github/workflows/deploy-fafbeta.yaml

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,39 @@ on:
3535
jobs:
3636
test:
3737
uses: ./.github/workflows/tests.yaml
38-
update:
38+
39+
changelog:
40+
name: Create changelog of FAF Develop
41+
uses: ./.github/workflows/docs-changelog.yaml
42+
with:
43+
reference: staging/fafbeta
44+
45+
changelog-lua:
46+
name: Convert changelog to Lua
47+
needs: [changelog]
48+
uses: ./.github/workflows/docs-convert-changelog.yaml
49+
with:
50+
branch: staging/fafbeta
51+
additional-changelog: fafbeta
52+
53+
deploy:
3954
name: Update FAF Beta Balance
40-
needs: [test]
55+
needs: [test, changelog-lua]
4156
runs-on: ubuntu-latest
4257
steps:
4358
# https://github.com/actions/checkout/tree/v4/
4459
- name: Checkout FA repository
4560
uses: actions/checkout@v4
4661
with:
4762
ssh-key: ${{ secrets.SSH_FAFOREVER_MACHINE_USER }}
48-
repository: FAForever/fa
4963
ref: staging/fafbeta
5064

65+
- name: Setup Git configuration
66+
run: |
67+
# Configure git
68+
git config user.email "github@faforever.com"
69+
git config user.name "FAForever Machine User"
70+
5171
# Allows us to better understand the game version and the specific commit hash when we receive a log
5272
- name: Update version references
5373
run: |
@@ -59,7 +79,6 @@ jobs:
5979
cat lua/version.lua
6080
6181
# Disable debugging statements
62-
#
6382
# You can overwrite these adjustments by setting up a `Debug` folder
6483
- name: Overwrite debug references
6584
run: |
@@ -68,16 +87,26 @@ jobs:
6887
# debugging
6988
cat lua/shared/components/DebugComponent.lua
7089
71-
# Create a commit with the changes of the workflow in it
72-
- name: Create a commit
90+
- name: Commit the changes
7391
run: |
74-
# Configure git
75-
git config user.email "github@faforever.com"
76-
git config user.name "FAForever Machine User"
77-
78-
git add .
92+
git stage .
7993
git commit -m "Post-process deployment"
8094
95+
- name: Delete old lua changelogs
96+
run: rm lua/ui/lobby/changelog/generated/*
97+
98+
- name: Retrieve generated lua changelog
99+
uses: actions/download-artifact@v4
100+
with:
101+
name: lua_changelog
102+
path: lua/ui/lobby/changelog/generated
103+
104+
- name: Commit lua changelog
105+
run: |
106+
git status
107+
git stage lua/ui/lobby/changelog/generated
108+
git commit -m "Add changelog"
109+
81110
# Update the deploy/fafbeta branch, we force push here because
82111
# we're not interested in fixing conflicts
83112
- name: Update deploy/fafbeta

0 commit comments

Comments
 (0)