Skip to content

Commit

Permalink
[site/cd,#4][s]: first effort at continuous deployment with github ac…
Browse files Browse the repository at this point in the history
…tions.
  • Loading branch information
rufuspollock committed Aug 17, 2021
1 parent 5081563 commit 2d7012d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Deployment

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false

- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: "14.x"

- name: Install and Build
run: |
cd site
yarn install
yarn build
yarn export
touch ./out/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site/out
3 changes: 2 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"export": "next export"
},
"dependencies": {
"@headlessui/react": "^1.4.0",
Expand Down

0 comments on commit 2d7012d

Please sign in to comment.