Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 63 additions & 5 deletions .github/workflows/conf-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: ${{ github.actor }} ${{ github.event_name }} to ${{ github.event.pull_
on:
push:
tags:
- 'v*'
- "v*"
pull_request:
branches: [main, develop]

Expand Down Expand Up @@ -63,14 +63,72 @@ jobs:
echo "${{ github.event.pull_request.head.repo.full_name }}" > ${{ runner.temp }}/common/pr-head-repo
echo "${{ github.event.pull_request.head.sha }}" > ${{ runner.temp }}/common/pr-head-sha

- uses: actions/upload-artifact@v4
- name: Upload linux artifact
uses: actions/upload-artifact@v4
with:
name: linux
path: build/default-develop/packages-default-develop/*

- uses: actions/upload-artifact@v4
- name: Upload common artifact
uses: actions/upload-artifact@v4
with:
name: common
path: |
${{ runner.temp }}/common/*
path: ${{ runner.temp }}/common/*

release-deploy:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs: [build_test_package]
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Move docs to website dir
run: mv artifacts/common/html github-pages

- name: Clean packages
run: |
rm -rf artifacts/*/_CPack_Packages
mv artifacts/common . || true

- name: Create CHANGELOG
run: |
git log $(git rev-list --tags --skip=1 --max-count=1 | xargs git describe --tags --abbrev=0)..$(git describe --tags --abbrev=0) \
--pretty=format:"* %h - %s (%an, %ar)" > CHANGELOG.md

- name: Package GitHub Page content
working-directory: ${{ github.workspace }}/github-pages
run: |
cmake -E make_directory ${{ runner.temp }}/page-packages
cmake -E tar c ${{ runner.temp }}/page-packages/github-pages.tar -- .

- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./artifacts/*/*
body_path: ./CHANGELOG.md

- name: Upload github-pages artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}/page-packages/*

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
60 changes: 0 additions & 60 deletions .github/workflows/release-deploy.yml

This file was deleted.