Skip to content

Commit e19e0f7

Browse files
author
abrulic
committed
updated workflows
1 parent 343ff6c commit e19e0f7

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,17 @@ jobs:
6363
run: pnpm install --prefer-offline --frozen-lockfile
6464

6565
- name: Generate docs
66+
#FIXME uncomment if working with monorepo structure
67+
# working-directory: docs
6668
env:
6769
APP_ENV: production
6870
run: pnpm run generate:docs
6971

7072
- name: Pack generated docs (tarball)
73+
# FIXME adjust if working with monorepo structure
74+
# run: |
75+
# tar -czf docs-generated.tgz -C docs generated-docs
76+
# ls -lh docs/docs-generated.tgz
7177
run: |
7278
tar -czf docs-generated.tgz generated-docs
7379
ls -lh docs-generated.tgz
@@ -83,6 +89,8 @@ jobs:
8389
uses: actions/upload-artifact@v4
8490
with:
8591
name: docs-versions
92+
# FIXME adjust if working with monorepo structure
93+
# path: docs/app/utils/versions.ts
8694
path: app/utils/versions.ts
8795
if-no-files-found: error
8896

@@ -100,6 +108,11 @@ jobs:
100108
path: .
101109

102110
- name: Unpack generated docs
111+
# FIXME adjust if working with monorepo structure
112+
# run: |
113+
# set -euxo pipefail
114+
# tar -xzf docs-generated.tgz -C docs
115+
# ls -laR docs/generated-docs | sed -n '1,200p'
103116
run: |
104117
tar -xzf docs-generated.tgz
105118
ls -laR generated-docs | sed -n '1,200p'
@@ -117,6 +130,8 @@ jobs:
117130
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
118131
FLY_REGION: ${{ vars.FLY_REGION }}
119132
with:
133+
# FIXME uncomment if working with monorepo structure
134+
# workspace_name: docs
120135
app_name: ${{ github.event.repository.name }}-${{ github.event.number }}
121136
use_isolated_workspace: true
122137
env_vars: |

.github/workflows/publish-documentation.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ jobs:
3232
run: pnpm install --prefer-offline --frozen-lockfile
3333

3434
- name: Generate docs
35-
working-directory: docs
35+
#FIXME uncomment if working with monorepo structure
36+
# working-directory: docs
3637
env:
3738
APP_ENV: production
3839
run: pnpm run generate:docs
3940

4041
- name: Pack generated docs (tarball)
42+
# FIXME adjust if working with monorepo structure
43+
# run: |
44+
# tar -czf docs-generated.tgz -C docs generated-docs
45+
# ls -lh docs/docs-generated.tgz
4146
run: |
42-
tar -czf docs-generated.tgz -C docs generated-docs
47+
tar -czf docs-generated.tgz generated-docs
4348
ls -lh docs-generated.tgz
4449
- name: Upload generated docs (tgz)
4550
uses: actions/upload-artifact@v4
@@ -52,7 +57,9 @@ jobs:
5257
uses: actions/upload-artifact@v4
5358
with:
5459
name: docs-versions
55-
path: docs/app/utils/versions.ts
60+
# FIXME adjust if working with monorepo structure
61+
# path: docs/app/utils/versions.ts
62+
path: app/utils/versions.ts
5663
if-no-files-found: error
5764

5865
deploy-docs-on-release:
@@ -69,10 +76,14 @@ jobs:
6976
path: .
7077

7178
- name: Unpack generated docs into docs/
79+
# FIXME adjust if working with monorepo structure
80+
# run: |
81+
# set -euxo pipefail
82+
# tar -xzf docs-generated.tgz -C docs
83+
# ls -laR docs/generated-docs | sed -n '1,200p'
7284
run: |
73-
set -euxo pipefail
74-
tar -xzf docs-generated.tgz -C docs
75-
ls -laR docs/generated-docs | sed -n '1,200p'
85+
tar -xzf docs-generated.tgz
86+
ls -laR generated-docs | sed -n '1,200p'
7687
- name: Download versions file
7788
uses: actions/download-artifact@v4
7889
with:
@@ -86,6 +97,8 @@ jobs:
8697
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
8798
FLY_REGION: ${{ vars.FLY_REGION }}
8899
with:
100+
# FIXME uncomment if working with monorepo structure
101+
# workspace_name: docs
89102
app_name: ${{github.event.repository.name}}-${{ github.ref_name }}
90103
use_isolated_workspace: true
91104
env_vars: |

Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ RUN pnpm install --prod=false
2424

2525
COPY . .
2626

27-
# Debug: Verify generated-docs exists
28-
RUN echo "=== Checking for generated-docs ===" && \
29-
ls -la generated-docs/ || echo "ERROR: generated-docs not found!" && \
30-
ls -la generated-docs/current/ || echo "ERROR: generated-docs/current not found!" && \
31-
echo "=== Checking versions.ts ===" && \
32-
cat app/utils/versions.ts || echo "ERROR: versions.ts not found!"
33-
3427
RUN pnpm run build
3528

3629
# Prune dev deps

0 commit comments

Comments
 (0)