Skip to content

...

... #107

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
with: { ref: "stable" }
- uses: pdidev/pkgs/.github/actions/deploy@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
KEY_PASSPHRASE: "${{ secrets.KEY_PASSPHRASE }}"
distribution: "${{ matrix.distrib }}"
aggregate:
runs-on: ubuntu-20.04
steps:
- name: Checkout packages
uses: actions/checkout@v4
with: { ref: "stable" }
- name: Aggregate sources
shell: bash
run: |
mkdir _site
cp README.tpl/index.html _site
cd _site
for DISTRIB in debian fedora ubuntu
do
CID="$(docker create ghcr.io/pdidev/pkgs/lastbuild:debian /bin/bash)"
docker cp "${CID}:artifact.url" "../${DISTRIB}.url"
echo curl "$(cat ../${DISTRIB}.url)"
curl -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} "$(cat ../${DISTRIB}.url)"
ls
ls -R ${DISTRIB}
wget "$(cat ../${DISTRIB}.url)"
done
- name: Upload page artifact
uses: actions/upload-pages-artifact@v3
publish:
needs: build
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