Skip to content

Commit 6541006

Browse files
authored
Merge pull request #231 from cmu-delphi/release/5.0.0
Release 5.0.0
2 parents ddfcbc4 + ea9fc00 commit 6541006

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2380
-1729
lines changed

.bumpversion.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[bumpversion]
2+
current_version = 5.0.0
3+
commit = False
4+
tag = False
5+
6+
[bumpversion:file:DESCRIPTION]
7+
8+
[bumpversion:file:app/global.R]

.gitattributes

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# These settings are for any web project
2+
3+
# Handle line endings automatically for files detected as text
4+
# and leave all files detected as binary untouched.
5+
* text=auto eol=lf
6+
7+
#
8+
# The above will handle all files NOT found below
9+
#
10+
11+
#
12+
## These files are text and should be normalized (Convert crlf => lf)
13+
#
14+
15+
# source code
16+
*.php text
17+
*.css text
18+
*.sass text
19+
*.scss text
20+
*.less text
21+
*.styl text
22+
*.js text
23+
*.ts text
24+
*.coffee text
25+
*.json text
26+
*.htm text
27+
*.html text
28+
*.xml text
29+
*.txt text
30+
*.ini text
31+
*.inc text
32+
*.pl text
33+
*.rb text
34+
*.py text
35+
*.scm text
36+
*.sql text
37+
*.sh text eof=LF
38+
*.bat text
39+
40+
# templates
41+
*.hbt text
42+
*.jade text
43+
*.haml text
44+
*.hbs text
45+
*.dot text
46+
*.tmpl text
47+
*.phtml text
48+
49+
# server config
50+
.htaccess text
51+
52+
# git config
53+
.gitattributes text
54+
.gitignore text
55+
56+
# code analysis config
57+
.jshintrc text
58+
.jscsrc text
59+
.jshintignore text
60+
.csslintrc text
61+
62+
# misc config
63+
*.yaml text
64+
*.yml text
65+
.editorconfig text
66+
67+
# build config
68+
*.npmignore text
69+
*.bowerrc text
70+
Dockerfile text eof=LF
71+
72+
# Heroku
73+
Procfile text
74+
.slugignore text
75+
76+
# Documentation
77+
*.md text
78+
LICENSE text
79+
AUTHORS text
80+
81+
82+
#
83+
## These files are binary and should be left untouched
84+
#
85+
86+
# (binary is a macro for -text -diff)
87+
*.png binary
88+
*.jpg binary
89+
*.jpeg binary
90+
*.gif binary
91+
*.ico binary
92+
*.mov binary
93+
*.mp4 binary
94+
*.mp3 binary
95+
*.flv binary
96+
*.fla binary
97+
*.swf binary
98+
*.gz binary
99+
*.zip binary
100+
*.7z binary
101+
*.ttf binary
102+
*.pyc binary
103+
*.pdf binary
104+
105+
# Source files
106+
# ============
107+
*.pxd text
108+
*.py text
109+
*.py3 text
110+
*.pyw text
111+
*.pyx text
112+
*.sh text eol=lf
113+
*.json text
114+
115+
# Binary files
116+
# ============
117+
*.db binary
118+
*.p binary
119+
*.pkl binary
120+
*.pyc binary
121+
*.pyd binary
122+
*.pyo binary
123+
124+
# Note: .db, .p, and .pkl files are associated
125+
# with the python modules ``pickle``, ``dbm.*``,
126+
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
127+
# (among others).

.github/release-drafter.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "📚 Content Changes"
5+
labels:
6+
- "blog"
7+
- "content"
8+
- title: "🚀 Features"
9+
labels:
10+
- "enhancement"
11+
- "feature"
12+
- title: "🐛 Bugs Fixes"
13+
labels:
14+
- "bug"
15+
- title: "📕 Documentation"
16+
labels:
17+
- "documentation"
18+
- title: "🧰 Development"
19+
labels:
20+
- "chore"
21+
- "documentation"
22+
- "dependencies"
23+
change-template: "- #$NUMBER $TITLE"
24+
change-title-escapes: '\<*_&`#@'
25+
template: |
26+
$CHANGES
27+
28+
Thanks to $CONTRIBUTORS

.github/workflows/ci.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: ci
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: r-lib/actions/setup-r@v1
11+
with:
12+
use-public-rspm: true
13+
- uses: r-lib/actions/setup-r-dependencies@v1
14+
- name: Style / Format
15+
shell: Rscript {0}
16+
run: styler::style_dir(dry="fail")
17+
- name: Lint
18+
shell: Rscript {0}
19+
run: |
20+
lintr::lint_dir('.')
21+
22+
image:
23+
needs: build
24+
# only on main and dev branch
25+
if: startsWith(github.ref, 'refs/heads/main') || github.ref == 'refs/heads/dev'
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Check out code
29+
uses: actions/checkout@v2
30+
- name: Pull Image Data
31+
run: make pull_data
32+
- name: Login to GitHub Container Registry
33+
uses: docker/login-action@v1
34+
with:
35+
registry: ghcr.io
36+
username: cmu-delphi-deploy-machine
37+
password: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
38+
- name: Build Image
39+
env:
40+
DEVOPS_DOCKER_FILE: ./devops/Dockerfile
41+
run: |
42+
docker build -t repo --file ${DEVOPS_DOCKER_FILE} .
43+
- name: Resolve Tag
44+
id: tagname
45+
run: |
46+
baseRef="${GITHUB_REF#*/}"
47+
imageTag="${baseRef#*/}"
48+
if [ "$imageTag" = "main" ] ; then
49+
imageTag="latest"
50+
fi
51+
echo "::set-output name=tag::$imageTag"
52+
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
53+
- name: Push Dev Tag
54+
run: |
55+
docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
56+
docker push ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
57+
- name: Set up Python 3.8
58+
if: startsWith(github.ref, 'refs/heads/main')
59+
uses: actions/setup-python@v2
60+
with:
61+
python-version: 3.8
62+
- name: Extract version
63+
if: startsWith(github.ref, 'refs/heads/main')
64+
id: extract_version
65+
run: |
66+
python -m pip install bump2version
67+
echo -n "::set-output name=version::"
68+
bump2version --dry-run --list patch | grep ^current_version | sed -r s,"^.*=",,
69+
- name: Trigger Webhook
70+
run: |
71+
# trigger a webhook update
72+
curl -H "Authorization: Bearer ${{ secrets.DELPHI_DEPLOY_WEBHOOK_TOKEN }}" \
73+
-X POST ${{ secrets.DELPHI_DEPLOY_WEBHOOK_URL }} \
74+
-H "Content-Type: application/x-www-form-urlencoded" \
75+
-d "repository=${{ steps.tagname.outputs.repo }}&tag=${{ steps.tagname.outputs.tag }}"
76+
- name: Push Version Tag Tag
77+
if: startsWith(github.ref, 'refs/heads/main')
78+
run: |
79+
docker tag repo ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}
80+
docker push ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}

.github/workflows/create_release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Create Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
versionName:
6+
description: "Semantic Version Number (i.e., 5.5.0 or patch, minor, major, prepatch, preminor, premajor, prerelease)"
7+
required: true
8+
default: patch
9+
jobs:
10+
create_release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v2
15+
with:
16+
ref: main
17+
ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }}
18+
- name: Reset main branch
19+
run: |
20+
git fetch origin dev:dev
21+
git reset --hard dev
22+
- name: Set up Python 3.8
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.8
26+
- name: Change version number
27+
id: version
28+
run: |
29+
python -m pip install bump2version
30+
echo -n "::set-output name=next_tag::"
31+
bump2version --list ${{ github.event.inputs.versionName }} | grep new_version | sed -r s,"^.*=",,
32+
- name: Create pull request into main
33+
uses: peter-evans/create-pull-request@v3
34+
with:
35+
branch: release/${{ steps.version.outputs.next_tag }}
36+
commit-message: "chore: release ${{ steps.version.outputs.next_tag }}"
37+
base: main
38+
title: Release ${{ steps.version.outputs.next_tag }}
39+
labels: chore
40+
reviewers: krivard
41+
assignees: krivard
42+
body: |
43+
Releasing ${{ steps.version.outputs.next_tag }}.

.github/workflows/main.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)