-
Notifications
You must be signed in to change notification settings - Fork 46
51 lines (42 loc) · 1.22 KB
/
memote-release.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
47
48
49
50
51
name: memote release
on:
release:
type: [published]
jobs:
memote:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
ref: main
- name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages-repo
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Create .env
run: touch .env
- name: Install memote
run: pip install -r code/requirements/requirements.txt
- name: Memote run
run: |
memote report snapshot --solver-timeout 30 --filename="gh-pages-repo/release_report.html"
- name: Fetch async changes in gh-pages
run: |
cd gh-pages-repo
git pull
- name: Auto-commit results
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: memote-bot
commit_message: "chore: update memote release report"
file_pattern: release_report.html
branch: gh-pages
repository: gh-pages-repo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}