diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2969341 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,52 @@ +name: test + +on: + push: + branches: + - main + +jobs: + build: + name: test + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Create XBPS package + run: echo "TO BE DONE LATER" + + - 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: /tmp/apindex/bin/apindex repository + + - 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e260bc8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +repository/index.html diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5a08205 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "apindex"] + path = apindex + url = https://github.com/libthinkpad/apindex.git diff --git a/apindex b/apindex new file mode 160000 index 0000000..7f3ab79 --- /dev/null +++ b/apindex @@ -0,0 +1 @@ +Subproject commit 7f3ab793abd3eca5a28a5a759f08ebf13b420395 diff --git a/repository/x86_64-repodata b/repository/x86_64-repodata new file mode 100644 index 0000000..570b154 Binary files /dev/null and b/repository/x86_64-repodata differ diff --git a/repository/xdeb-install-1.0.0_1.x86_64.xbps b/repository/xdeb-install-1.0.0_1.x86_64.xbps new file mode 100644 index 0000000..f058af4 Binary files /dev/null and b/repository/xdeb-install-1.0.0_1.x86_64.xbps differ diff --git a/repository/xdeb-install-1.0.0_1.x86_64.xbps.sig2 b/repository/xdeb-install-1.0.0_1.x86_64.xbps.sig2 new file mode 100644 index 0000000..2a0fea5 Binary files /dev/null and b/repository/xdeb-install-1.0.0_1.x86_64.xbps.sig2 differ