-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create XBPS packages | ||
run: echo "TO BE DONE LATER" | ||
|
||
- name: Create XBPS repository | ||
run: | | ||
echo ${{ 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: | | ||
git submodule update --init | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repository/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Binary file not shown.