Skip to content

...

... #116

Workflow file for this run

name: stable build
on:
push:
branches: [ stable ]
schedule:
- cron: '27 1 3 * *' # monthly build on 1st of each month, 1:27AM
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
distrib: [ debian, fedora, ubuntu ]
steps:
- name: Checkout packages
uses: actions/checkout@v4
- uses: pdidev/pkgs/.github/actions/deploy@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
KEY_PASSPHRASE: "${{ secrets.KEY_PASSPHRASE }}"
distribution: "${{ matrix.distrib }}"
aggregate:
if: ${{ always() }}
needs: build
runs-on: ubuntu-20.04
steps:
- name: Checkout packages
uses: actions/checkout@v4
with: { path: data }
- name: Aggregate sources
id: ident
shell: bash
run: |
mkdir _site
cp data/README.tpl/index.html _site
rm -rf data
echo -e '\n\n\n---\n\n\n'
for DISTRIB in debian fedora ubuntu
do
echo starting with ${DISTRIB}
CID="$(docker create ghcr.io/pdidev/pkgs/lastbuild:debian /bin/bash)"
docker cp "${CID}:run_id" "${DISTRIB}.run_id"
echo "${DISTRIB}_run_id=$(cat ${DISTRIB}.run_id)\n" >> $GITHUB_OUTPUT
echo "${DISTRIB}_run_id=$(cat ${DISTRIB}.run_id)\n"
echo -e '\n\n\n---\n\n\n'
done
- uses: actions/download-artifact@v4
with:
name: debian
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{steps.ident.outputs.debian_run_id}}
path: _site
- uses: actions/download-artifact@v4
with:
name: fedora
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{steps.ident.outputs.fedora_run_id}}
path: _site
- uses: actions/download-artifact@v4
with:
name: ubuntu
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{steps.ident.outputs.ubuntu_run_id}}
path: _site
- name: Show content
shell: bash
run: |
ls -R
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3
publish:
needs: aggregate
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4