Skip to content

Commit 6beef83

Browse files
author
Matthieu Oger
committed
Add presskit script
1 parent ae641b4 commit 6beef83

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"build": "yarn run build:webpack && yarn run build:jekyll",
1616
"build:webpack": "webpack -p --env.production",
1717
"build:jekyll": "bundle exec jekyll clean && JEKYLL_ENV=production bundle exec jekyll build",
18+
"presskit": "./update_presskit",
1819
"test": "standard | snazzy"
1920
},
2021
"dependencies": {

update_presskit

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
# If it doesn't work the first time, it means that you have a freshly created repo.
4+
# The presskit uses the build branch for its published version. We need to be on that branch in `presskit/`.
5+
# Do that:
6+
#
7+
# cd presskit/ # This is not a folder, but a reference to a remote commit.
8+
# git submodule update --remote
9+
# git checkout build
10+
11+
# Update.
12+
cd presskit/
13+
git checkout build
14+
git pull --rebase=preserve
15+
16+
# Commit.
17+
cd ..
18+
git add presskit/
19+
git commit --message "Update presskit"

0 commit comments

Comments
 (0)