Skip to content

Commit 3126f3f

Browse files
bakkotljharb
andcommitted
deploy to gh-pages branch
Co-authored-by: Kevin Gibbons <[email protected]> Co-authored-by: Jordan Harband <[email protected]>
1 parent 6d80d6a commit 3126f3f

File tree

7 files changed

+39
-2582
lines changed

7 files changed

+39
-2582
lines changed

.gitattributes

-3
This file was deleted.

.github/workflows/build.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
name: Deploy spec
1+
name: Build spec
22

3-
on: [push]
3+
on: [pull_request, push]
44

55
jobs:
66
build:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
10+
- uses: actions/checkout@v3
11+
- uses: ljharb/actions/node/install@main
12+
name: 'nvm install lts/* && npm install'
1213
with:
13-
node-version: '12.x'
14-
- run: npm install
14+
node-version: lts/*
1515
- run: npm run build
16-
- name: commit changes
17-
uses: elstudio/actions-js-build/commit@v3
18-
with:
19-
commitMessage: "fixup: [spec] `npm run build`"

.github/workflows/deploy.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
- run: npm install
18+
- run: npm run build
19+
- uses: JamesIves/[email protected]
20+
with:
21+
branch: gh-pages
22+
folder: build
23+
clean: true

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ yarn.lock
4141
package-lock.json
4242
npm-shrinkwrap.json
4343
pnpm-lock.yaml
44+
45+
# Build directory
46+
build

README.md

+3-15
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,11 @@ Please ensure the following:
1414
Follow these steps:
1515
1. Click the green ["use this template"](https://github.com/tc39/template-for-proposals/generate) button in the repo header. (Note: Do not fork this repo in GitHub's web interface, as that will later prevent transfer into the TC39 organization)
1616
1. Update the biblio to the latest version: `npm install --save-dev --save-exact @tc39/ecma262-biblio@latest`.
17-
1. Go to your repo settings “Options” page, under “GitHub Pages”, and set the source to the **main branch** under the root (and click Save, if it does not autosave this setting)
18-
1. check "Enforce HTTPS"
17+
1. Go to your repo settings “Options” page, under “GitHub Pages”, and set the source to `gh-pages` under the root and click Save. You may need to wait a minute or so after creating the repo for the initial build to finish and create the branch.
18+
1. Check "Enforce HTTPS"
1919
1. On "Options", under "Features", Ensure "Issues" is checked, and disable "Wiki", and "Projects" (unless you intend to use Projects)
2020
1. Under "Merge button", check "automatically delete head branches"
21-
<!--
22-
1. Avoid merge conflicts with build process output files by running:
23-
```sh
24-
git config --local --add merge.output.driver true
25-
git config --local --add merge.output.driver true
26-
```
27-
1. Add a post-rewrite git hook to auto-rebuild the output on every commit:
28-
```sh
29-
cp hooks/post-rewrite .git/hooks/post-rewrite
30-
chmod +x .git/hooks/post-rewrite
31-
```
32-
-->
33-
3. ["How to write a good explainer"][explainer] explains how to make a good first impression.
21+
1. ["How to write a good explainer"][explainer] explains how to make a good first impression.
3422

3523
> Each TC39 proposal should have a `README.md` file which explains the purpose
3624
> of the proposal and its shape at a high level.

0 commit comments

Comments
 (0)