Skip to content

Commit

Permalink
deploy to gh-pages branch
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
bakkot and ljharb committed May 23, 2022
1 parent 6d80d6a commit 14953c2
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 2,582 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

16 changes: 6 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: Deploy spec
name: Build spec

on: [push]
on: [pull_request, push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: '12.x'
- run: npm install
node-version: lts/*
- run: npm run build
- name: commit changes
uses: elstudio/actions-js-build/commit@v3
with:
commitMessage: "fixup: [spec] `npm run build`"
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy gh-pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: lts/*
- run: npm run build
- uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: build
clean: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ yarn.lock
package-lock.json
npm-shrinkwrap.json
pnpm-lock.yaml

# Build directory
build
18 changes: 3 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,11 @@ Please ensure the following:
Follow these steps:
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)
1. Update the biblio to the latest version: `npm install --save-dev --save-exact @tc39/ecma262-biblio@latest`.
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)
1. check "Enforce HTTPS"
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.
1. Check "Enforce HTTPS"
1. On "Options", under "Features", Ensure "Issues" is checked, and disable "Wiki", and "Projects" (unless you intend to use Projects)
1. Under "Merge button", check "automatically delete head branches"
<!--
1. Avoid merge conflicts with build process output files by running:
```sh
git config --local --add merge.output.driver true
git config --local --add merge.output.driver true
```
1. Add a post-rewrite git hook to auto-rebuild the output on every commit:
```sh
cp hooks/post-rewrite .git/hooks/post-rewrite
chmod +x .git/hooks/post-rewrite
```
-->
3. ["How to write a good explainer"][explainer] explains how to make a good first impression.
1. ["How to write a good explainer"][explainer] explains how to make a good first impression.

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

0 comments on commit 14953c2

Please sign in to comment.