Skip to content

Commit e655edd

Browse files
committed
deploy to gh-pages branch
1 parent b34026a commit e655edd

File tree

7 files changed

+33
-2469
lines changed

7 files changed

+33
-2469
lines changed

.gitattributes

-3
This file was deleted.

.github/workflows/build.yml

+4-8
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
44

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

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
11+
- uses: actions/setup-node@v3
1212
with:
13-
node-version: '12.x'
13+
node-version: 16
1414
- run: npm install
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

+2-14
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,11 @@ Please ensure the following:
1313

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)
16-
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)
16+
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.
1717
1. check "Enforce HTTPS"
1818
1. On "Options", under "Features", Ensure "Issues" is checked, and disable "Wiki", and "Projects" (unless you intend to use Projects)
1919
1. Under "Merge button", check "automatically delete head branches"
20-
<!--
21-
1. Avoid merge conflicts with build process output files by running:
22-
```sh
23-
git config --local --add merge.output.driver true
24-
git config --local --add merge.output.driver true
25-
```
26-
1. Add a post-rewrite git hook to auto-rebuild the output on every commit:
27-
```sh
28-
cp hooks/post-rewrite .git/hooks/post-rewrite
29-
chmod +x .git/hooks/post-rewrite
30-
```
31-
-->
32-
3. ["How to write a good explainer"][explainer] explains how to make a good first impression.
20+
1. ["How to write a good explainer"][explainer] explains how to make a good first impression.
3321

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

0 commit comments

Comments
 (0)