Skip to content

Commit e76565c

Browse files
committed
WIP: mod: .github/workflows/build-rootfs.yml (devel/build/main)
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 3abd59e commit e76565c

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

.github/workflows/build-rootfs.yml

+5-28
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ name: Build in rootfs for arch
44

55
on: # yamllint disable-line rule:truthy
66
push:
7-
tags:
8-
- '*'
97
jobs:
108
build:
119
runs-on: ubuntu-24.04
@@ -23,32 +21,13 @@ jobs:
2321
run: >-
2422
echo "describe=$(git describe --tags --always || echo 0)"
2523
| 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
3825
- 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
5029
deploy:
51-
needs: build
30+
needs: build-docs
5231
permissions:
5332
pages: write # to deploy to Pages
5433
id-token: write # to verify the deployment originates from an appropriate source
@@ -59,11 +38,9 @@ jobs:
5938
steps:
6039
- name: Upload pages artifact
6140
uses: actions/upload-pages-artifact@v3.0.1
62-
if: startsWith(github.ref, 'refs/tags/')
6341
with:
6442
name: 'github-pages'
6543
path: 'docs/'
6644
- name: Deploy to GitHub Pages
6745
id: deployment
6846
uses: actions/deploy-pages@v3
69-
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)