Skip to content

Commit 985e792

Browse files
crobinsophrdina
authored andcommitted
ci: actually fix publishing flatpak verification
I was confused in the previous commit. `actions/upload-pages-artifact` does not support hidden files, but `actions/upload-artifact` does. Drop use of `actions/upload-pages-artifact` and roll it by hand. I confirmed this works correctly on my fork Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent 33f8fca commit 985e792

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,24 @@ jobs:
4040
cp -a appdata _site/
4141
cp -a jquery.fancybox _site/
4242
cp -a .well-known _site/
43-
- name: Upload artifacts
44-
# Automatically uploads an artifact from the './_site' directory by default
45-
uses: actions/upload-pages-artifact@v4
43+
- name: Archive artifact
44+
# Derived from upload-pages-artifact@v4
45+
# But we need hidden files included for flatpak .well-known
46+
run: |
47+
tar \
48+
--dereference --hard-dereference \
49+
--directory _site \
50+
-cvf "$RUNNER_TEMP/artifact.tar" \
51+
--exclude=.git \
52+
--exclude=.github \
53+
.
54+
- name: Upload artifact
55+
uses: actions/upload-artifact@v6
4656
with:
57+
name: github-pages
58+
path: ${{ runner.temp }}/artifact.tar
59+
retention-days: 1
60+
if-no-files-found: error
4761
include-hidden-files: true
4862

4963
# Deployment job

0 commit comments

Comments
 (0)