@@ -4,8 +4,6 @@ name: Build in rootfs for arch
4
4
5
5
on : # yamllint disable-line rule:truthy
6
6
push :
7
- tags :
8
- - ' *'
9
7
jobs :
10
8
build :
11
9
runs-on : ubuntu-24.04
@@ -23,32 +21,13 @@ jobs:
23
21
run : >-
24
22
echo "describe=$(git describe --tags --always || echo 0)"
25
23
| tee $GITHUB_OUTPUT
26
- - name : Setup and build
27
- run : >-
28
- ARCH=${{ matrix.arch }}
29
- UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }}
30
- UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }}
31
- ./scripts/build-rootfs.sh setup configure
32
- - name : Upload artifacts
33
- uses : actions/upload-artifact@v4
34
- with :
35
- # yamllint disable-line rule:line-length
36
- name : ${{ github.event.repository.name }}-${{ steps.describe.outputs.describe }}-${{ matrix.arch }}
37
- path : build/dist/
24
+ - id : build-docs
38
25
- name : Build documentation once
39
- run : >-
40
- ./scripts/build-rootfs.sh docs/dist
41
- - name : Upload Release Asset
42
- id : upload-release-asset
43
- uses : softprops/action-gh-release@v2
44
- if : startsWith(github.ref, 'refs/tags/')
45
- with :
46
- files : build/dist/*
47
- # yamllint disable-line rule:line-length
48
- # TODO: Sign asset: https://github.com/softprops/action-gh-release/issues/580#2025
49
- token : ${{ secrets.GH_UNIFY_ACCESS_TOKEN }}
26
+ run : |
27
+ apt-get install -y install make
28
+ ./helper.mk docs
50
29
deploy :
51
- needs : build
30
+ needs : build-docs
52
31
permissions :
53
32
pages : write # to deploy to Pages
54
33
id-token : write # to verify the deployment originates from an appropriate source
59
38
steps :
60
39
- name : Upload pages artifact
61
40
uses : actions/upload-pages-artifact@v3.0.1
62
- if : startsWith(github.ref, 'refs/tags/')
63
41
with :
64
42
name : ' github-pages'
65
43
path : ' docs/'
66
44
- name : Deploy to GitHub Pages
67
45
id : deployment
68
46
uses : actions/deploy-pages@v3
69
- if : startsWith(github.ref, 'refs/tags/')
0 commit comments