GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add GitHub Action to rebuild and publish website (#149) · nodejs/node-addon-examples@adb6ab3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • website.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/website.yml‎

Copy file name to clipboard
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Deploy the Website
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
deploy-website:
9+
runs-on: ubuntu-latest
10+
container: node
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
16+
- run: npx envinfo
17+
- name: Build and Deploy
18+
env:
19+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
REPO: ${{ github.repository }}
21+
USER: gatsby-deploy-bot <[email protected]>
22+
working-directory: ./website
23+
run: |
24+
npm install
25+
npx gatsby build --prefix-paths
26+
npx gh-pages -d public -r https://git:${TOKEN}@github.com/${REPO}.git -u "${USER}"

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.