Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
thetredev committed Oct 1, 2023
0 parents commit 6397f8d
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: GitHub Pages

on:
push:
branches:
- main

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
container:
image: ghcr.io/void-linux/void-buildroot-glibc:20230904R2
steps:
- name: Prepare container environment
run: xbps-install -Sy xbps git cmake python3 tar

- uses: actions/checkout@v4
with:
submodules: true

- name: Create XBPS packages
run: echo "TO BE DONE LATER"

- name: Create XBPS repository
run: |
echo -n "${{ secrets.XBPS_REPOSITORY_KEY }}" > private.pem
xbps-rindex -a repository/*.xbps
xbps-rindex --sign \
--signedby "${{ github.repository_owner }} <${{ github.event.pusher.email }}>" \
--privkey private.pem \
repository
for pkg in $(ls -d -1 repository/*.xbps); do
xbps-rindex --privkey private.pem --sign-pkg ${pkg}
done
- name: Prepare apindex
run: |
cd apindex
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/apindex
make install
- name: Generate index.html
run: cd repository && /tmp/apindex/bin/apindex .

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: repository

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repository/index.html
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "apindex"]
path = apindex
url = https://github.com/libthinkpad/apindex.git
1 change: 1 addition & 0 deletions apindex
Submodule apindex added at 7f3ab7
Binary file added repository/xdeb-install-1.0.0_1.x86_64.xbps
Binary file not shown.

0 comments on commit 6397f8d

Please sign in to comment.