Skip to content

Commit

Permalink
ci: Extract to a subdirectory for easier cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Jan 11, 2025
1 parent 7e207d0 commit 8a7bef7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-flatpak-builder-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- name: Download docs
run: |
curl -L -o flatpak-builder.pkg.tar.zst https://archlinux.org/packages/extra/x86_64/flatpak-builder/download/
tar --zstd -xf flatpak-builder.pkg.tar.zst
mkdir -p flatpak-builder
tar --zstd -xf flatpak-builder.pkg.tar.zst -C flatpak-builder
rm -f flatpak-builder.pkg.tar.zst
- name: Get current docs version
run: |
Expand All @@ -27,8 +29,8 @@ jobs:
- name: Move docs
run: |
cp -vf usr/share/doc/flatpak-builder/flatpak-builder-docs.html docs/
rm -rf usr/
cp -vf flatpak-builder/usr/share/doc/flatpak-builder/flatpak-builder-docs.html docs/
rm -rf flatpak-builder/
- name: Get new docs version
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/update-flatpak-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- name: Download docs
run: |
curl -L -o flatpak-docs.pkg.tar.zst https://archlinux.org/packages/extra/x86_64/flatpak-docs/download/
tar --zstd -xf flatpak-docs.pkg.tar.zst
mkdir -p flatpak-docs
tar --zstd -xf flatpak-docs.pkg.tar.zst -C flatpak-docs
rm -f flatpak-docs.pkg.tar.zst
- name: Get current docs version
run: |
Expand All @@ -27,8 +29,8 @@ jobs:
- name: Move docs
run: |
cp -vf usr/share/doc/flatpak/flatpak-docs.html docs/
rm -rf usr/
cp -vf flatpak-docs/usr/share/doc/flatpak/flatpak-docs.html docs/
rm -rf flatpak-docs/
- name: Get new docs version
run: |
Expand Down

0 comments on commit 8a7bef7

Please sign in to comment.