Skip to content

EddyTheCo pull_request to develop #50

EddyTheCo pull_request to develop

EddyTheCo pull_request to develop #50

name: push-build-release
run-name: ${{ github.actor }} ${{ github.event_name }} to ${{ github.event.pull_request.base.ref }}
on:
push:
tags:
- 'v*'
pull_request:
branches: [develop]
jobs:
build_test_package:
strategy:
matrix:
os: [ubuntu-latest,macos-latest,windows-latest]
uses: EddyTheCo/Common/.github/workflows/[email protected]
with:
os: ${{ matrix.os }}
qtVersion: '6.8.1'
qtModules: 'qtshadertools'
release:
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:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Move repositories to webpage
run: |
mv artifacts/common/html github-pages
mv artifacts/common .
mkdir github-pages/packages/ ${{runner.temp}}/platforms/
mv artifacts/*/_CPack_Packages/* ${{runner.temp}}/platforms/
for i in ${{runner.temp}}/platforms/*; do mv $i/IFW/*/repository/* $i/; rm -rf $i/IFW $i/TGZ; done;
mv ${{runner.temp}}/platforms/* github-pages/packages/
rm -rf artifacts/*/_CPack_Packages
- name: Package github-page
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: Releases
uses: softprops/action-gh-release@v2
with:
files: ./artifacts/*/*
body_path: ./common/CHANGELOG.md
- 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