-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.12 KB
/
compute.yml
File metadata and controls
42 lines (39 loc) · 1.12 KB
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
name: Create Table
on:
push:
branches:
- main
workflow_dispatch:
jobs:
compute:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
# we want a lower-case version of the repo name
- name: Sanitize repo slug
uses: actions/github-script@v4
id: repo_slug
with:
result-encoding: string
script: return '${{ github.repo.repo }}'.toLowerCase()
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Compute the main result, re-using the run.sh script
- name: Compute
run: "bash -x ./run_locally.sh "
# send it to the results branch
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
user_name: 'Github Action Bot'
user_email: 'lars.vilhuber@cornell.edu'
publish_branch: results
keep_files: true