forked from Eriner/zsh-framework-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (46 loc) · 1.18 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: 0 0 * * 0
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
with:
path: main
- name: Run benchmarks
uses: ./main/.github/action
with:
cmd: |
cd main && \
source run.zsh && \
gnuplot -e "zsh_version = 'zsh $ZSH_VERSION'" -c plot-graph
- uses: actions/checkout@v2
if: ${{ github.ref == 'refs/heads/master' }}
with:
repository: zimfw/zimfw.github.io
token: ${{ secrets.PAT }}
path: artifacts
- name: Push images/results.svg
if: ${{ github.ref == 'refs/heads/master' }}
working-directory: artifacts
run: |
cp ../main/results.svg images/results.svg && \
git config user.name github-actions && \
git config user.email [email protected] && \
git add images/results.svg && \
git commit -m "Update images/results.svg" && \
git push
- uses: actions/upload-artifact@v2
with:
path: |
main/results/results.csv
main/results.svg