Skip to content

publish

publish #160

Workflow file for this run

name: publish
on:
push:
branches: [main]
schedule:
- cron: '17 6 * * *' # daily: pick up new product releases
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install repo tools
run: |
sudo apt-get update -qq
sudo apt-get install -y reprepro createrepo-c rpm
- name: Import signing key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
KEYID=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec/ {print $5; exit}')
echo "KEYID=$KEYID" >> "$GITHUB_ENV"
- name: Build apt + yum repositories
env:
GH_TOKEN: ${{ github.token }}
run: ./build-repo.sh
- uses: actions/upload-pages-artifact@v3
with:
path: site/
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4