process perf results no docker custom #2
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
name: process perf results no docker custom | |
on: | |
workflow_dispatch: | |
inputs: | |
commit_id: | |
description: 'Commit to read results from' | |
required: true | |
default: '5b13c202bbf6a196104ebb440678dd22037b6746' | |
#push: | |
# branches: | |
# - test-perf | |
permissions: | |
id-token: write | |
pages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to GHCR | |
uses: meta-introspector/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Download a Build Artifact | |
uses: meta-introspector/action-download-artifact@v6 | |
with: | |
workflow_search: true | |
commit: ${{ inputs.commit_id }} | |
skip_unpack: true | |
path: data | |
- name: list | |
run: | | |
find data | |
for x in data/*.zip; | |
do unzip $x; | |
done | |
unzip data/results.tgz.zip | |
tar -xzf ./results.tgz | |
pushd app/perf-reporting/output/results/ | |
tree -H . -o index.html | |
# cp index.txt app/perf-reporting/output/results/index.html | |
- name: Setup Pages | |
uses: meta-introspector/configure-pages@v5 | |
- name: Upload Artifact | |
uses: meta-introspector/upload-pages-artifact@v5 | |
with: | |
path: 'app/perf-reporting/output/results' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: meta-introspector/deploy-pages@v4.1 | |