mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-07-26 05:46:59 +00:00
fix github pages
This commit is contained in:
@@ -102,6 +102,13 @@ jobs:
|
|||||||
path: bundles
|
path: bundles
|
||||||
pattern: flatpak-bundle-*
|
pattern: flatpak-bundle-*
|
||||||
|
|
||||||
|
- name: Checkout existing gh-pages
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: gh-pages
|
||||||
|
path: gh-pages-branch
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Setup GPG
|
- name: Setup GPG
|
||||||
id: gpg
|
id: gpg
|
||||||
uses: crazy-max/ghaction-import-gpg@v6
|
uses: crazy-max/ghaction-import-gpg@v6
|
||||||
@@ -109,10 +116,21 @@ jobs:
|
|||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
|
|
||||||
- name: Create OSTree Repo and Prepare Release Bundles
|
- name: Update OSTree Repo and Prepare Release Bundles
|
||||||
run: |
|
run: |
|
||||||
mkdir -p pages-repo release-bundles
|
mkdir -p release-bundles
|
||||||
|
|
||||||
|
# Inherit existing OSTree repository to preserve previous branches (e.g. stable vs nightly)
|
||||||
|
if [ -f "gh-pages-branch/config" ]; then
|
||||||
|
echo "Found existing OSTree repository. Copying..."
|
||||||
|
cp -r gh-pages-branch pages-repo
|
||||||
|
# Clean up the .git folder so it doesn't interfere
|
||||||
|
rm -rf pages-repo/.git
|
||||||
|
else
|
||||||
|
echo "Initializing new OSTree repository..."
|
||||||
|
mkdir -p pages-repo
|
||||||
ostree init --mode=archive-z2 --repo=pages-repo
|
ostree init --mode=archive-z2 --repo=pages-repo
|
||||||
|
fi
|
||||||
|
|
||||||
for dir in bundles/flatpak-bundle-*; do
|
for dir in bundles/flatpak-bundle-*; do
|
||||||
arch=$(basename "$dir" | sed 's/flatpak-bundle-//')
|
arch=$(basename "$dir" | sed 's/flatpak-bundle-//')
|
||||||
|
|||||||
@@ -223,6 +223,14 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y reprepro
|
sudo apt-get install -y reprepro
|
||||||
|
|
||||||
|
mkdir -p apt-repo
|
||||||
|
|
||||||
|
# Restore existing repository first so we don't lose old packages
|
||||||
|
if [ -d "gh-pages-branch/apt" ]; then
|
||||||
|
cp -r gh-pages-branch/apt/* apt-repo/ || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Always rewrite the config and public key to ensure they are up-to-date
|
||||||
mkdir -p apt-repo/conf
|
mkdir -p apt-repo/conf
|
||||||
|
|
||||||
cat <<EOF > apt-repo/conf/distributions
|
cat <<EOF > apt-repo/conf/distributions
|
||||||
@@ -235,13 +243,8 @@ jobs:
|
|||||||
SignWith: ${{ steps.gpg.outputs.fingerprint }}
|
SignWith: ${{ steps.gpg.outputs.fingerprint }}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Export public key for users to download
|
|
||||||
gpg --armor --export ${{ steps.gpg.outputs.fingerprint }} > apt-repo/pubkey.gpg
|
gpg --armor --export ${{ steps.gpg.outputs.fingerprint }} > apt-repo/pubkey.gpg
|
||||||
|
|
||||||
if [ -d "gh-pages-branch/apt" ]; then
|
|
||||||
cp -r gh-pages-branch/apt/* apt-repo/ || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd apt-repo
|
cd apt-repo
|
||||||
|
|
||||||
for deb in ../debs/*.deb; do
|
for deb in ../debs/*.deb; do
|
||||||
|
|||||||
Reference in New Issue
Block a user