Skip to content

Commit 6bcbe4d

Browse files
committed
update releases
1 parent e9dbef0 commit 6bcbe4d

File tree

6 files changed

+88
-12
lines changed

6 files changed

+88
-12
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Processing 4.0 alpha 4",
3+
"tagName": "processing-1273-4.0a4",
4+
"publishedAt": "2021-06-15T22:40:02Z",
5+
"releaseAssets": {
6+
"edges": [
7+
{
8+
"node": {
9+
"name": "processing-4.0a4-windows64.zip",
10+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1273-4.0a4/processing-4.0a4-windows64.zip"
11+
}
12+
},
13+
{
14+
"node": {
15+
"name": "processing-4.0a4-macosx.zip",
16+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1273-4.0a4/processing-4.0a4-macosx.zip"
17+
}
18+
},
19+
{
20+
"node": {
21+
"name": "processing-4.0a4-linux64.tgz",
22+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1273-4.0a4/processing-4.0a4-linux64.tgz"
23+
}
24+
}
25+
]
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Processing 4.0 alpha 5",
3+
"tagName": "processing-1274-4.0a5",
4+
"publishedAt": "2021-06-24T19:32:05Z",
5+
"releaseAssets": {
6+
"edges": [
7+
{
8+
"node": {
9+
"name": "processing-4.0a5-windows64.zip",
10+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1274-4.0a5/processing-4.0a5-windows64.zip"
11+
}
12+
},
13+
{
14+
"node": {
15+
"name": "processing-4.0a5-macosx.zip",
16+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1274-4.0a5/processing-4.0a5-macosx.zip"
17+
}
18+
},
19+
{
20+
"node": {
21+
"name": "processing-4.0a5-linux64.tgz",
22+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1274-4.0a5/processing-4.0a5-linux64.tgz"
23+
}
24+
}
25+
]
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Processing 4.0 alpha 6",
3+
"tagName": "processing-1275-4.0a6",
4+
"publishedAt": "2021-07-10T21:58:26Z",
5+
"releaseAssets": {
6+
"edges": [
7+
{
8+
"node": {
9+
"name": "processing-4.0a6-macosx.zip",
10+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1275-4.0a6/processing-4.0a6-macosx.zip"
11+
}
12+
},
13+
{
14+
"node": {
15+
"name": "processing-4.0a6-linux64.tgz",
16+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1275-4.0a6/processing-4.0a6-linux64.tgz"
17+
}
18+
},
19+
{
20+
"node": {
21+
"name": "processing-4.0a6-windows64.zip",
22+
"downloadUrl": "https://github.com/processing/processing4/releases/download/processing-1275-4.0a6/processing-4.0a6-windows64.zip"
23+
}
24+
}
25+
]
26+
}
27+
}

docs/download.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@
22

33
In order to specify which releases that should be featured on the website, edit the [`content/download/selected.json`](/content/download/selected.json) file. This file has a list of all featured releases and pre-releases indicated by the `tagName` of the release on GitHub.
44

5-
In order to not require an API token on GitHub in development, there is a separate script in [`scripts/fetchReleases.js`](/scripts/fetchReleases.js) that can be run to fetch the releases from GitHub. This script is automatically run when the website is deployed via GitHub, but you will need to manually run it in case you're running the website on `localhost`.
5+
In order to not require an API token on GitHub in development, there is a separate script in [`scripts/fetchReleases.js`](/scripts/fetchReleases.js) that can be run to fetch the releases from GitHub. This script needs to be run before you update the `selected.json` file.
66

77
## How to show a new release on the download page
88

99
1. Make sure that the release has been published on GitHub
10-
2. Edit the [`selected.json`](/content/download/selected.json) file to include the new release tag
11-
3. Make a PR to the `master` branch. When this PR is merged and a new GitHub release is created, a GitHub action will take care of fetching the release data from GitHub and redeploy the website.
12-
13-
If you want to see the changes on your local machine before merging the PR, you can run the fetching script like this:
14-
15-
```
16-
$ GITHUB_TOKEN=SOMETOKENHERE npm run fetchReleases
17-
```
10+
1. Run the script with a GitHub token: `$ GITHUB_TOKEN=SOMETOKENHERE npm run fetchReleases`
11+
1. Edit the [`selected.json`](/content/download/selected.json) file to include the new release tag
12+
1. Make a PR to the `master` branch.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
2626
"fetchReleases": "node scripts/fetchReleases.js",
2727
"deploy": "static deploy",
28-
"deployGithub": "gatsby clean && npm run fetchReleases && static deploy --env production --confirm",
28+
"deployGithub": "gatsby clean && static deploy --env production --confirm",
2929
"open": "static open"
3030
},
3131
"dependencies": {

scripts/fetchReleases.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const fetchReleases = async () => {
4949
`,
5050
{
5151
headers: {
52-
authorization: `token ${process.env.GITHUB_TOKEN}`,
53-
},
52+
authorization: `token ${process.env.GITHUB_TOKEN}`
53+
}
5454
}
5555
);
5656

0 commit comments

Comments
 (0)