Skip to content

Commit b531856

Browse files
committed
Use a consistent mechanism to upload our reference build
Something changed recently in how actions/upload-artifact creates its archives, such that symlinked files behaved differently under that action than under actions/upload-pages-artifact. This broke our diffing logic. Move to using the same upload approach for both the local and reference main builds, to avoid spurious errors.
1 parent 51fc880 commit b531856

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ jobs:
8282
- name: Build
8383
run: rake build
8484

85-
- name: Upload build site
86-
uses: actions/upload-artifact@v4
85+
- name: Upload reference artifact
86+
uses: actions/upload-pages-artifact@v3
8787
with:
8888
name: build-from-main
89-
path: _site
9089

9190
diff:
9291
runs-on: ubuntu-latest
@@ -113,7 +112,14 @@ jobs:
113112
uses: actions/download-artifact@v4
114113
with:
115114
name: build-from-main
116-
path: main
115+
116+
- name: Unpack main build
117+
run: |
118+
mkdir main
119+
pushd main
120+
tar --extract --file ../artifact.tar
121+
popd
122+
mv artifact.tar main.tar
117123
118124
- name: Diff
119125
id: diff

0 commit comments

Comments
 (0)