test #1
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
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 |