WIP: mod: .github/workflows/build-rootfs.yml (devel/build/main) #84
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
# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*- | |
--- | |
name: Build in rootfs for arch | |
on: # yamllint disable-line rule:truthy | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- id: describe | |
name: Describe HEAD | |
run: >- | |
echo "describe=$(git describe --tags --always || echo 0)" | |
| tee $GITHUB_OUTPUT | |
- id: build-docs | |
name: Build documentation once | |
run: | | |
./helper.mk docs | |
deploy: | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Upload pages artifact | |
uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
name: 'github-pages' | |
path: 'docs/' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v3 |