Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Mar 22, 2023
2 parents f7fd69f + 0f15ed0 commit b262405
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 29 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build gh-pages

# Controls when the workflow will run
on:

push:
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '14'
- name: install
run: npm install && npm run build

- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config pull.rebase false
git --work-tree dist add --all
git --work-tree dist commit -m "update gh-pages site"
# Runs a set of commands using the runners shell
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
29 changes: 0 additions & 29 deletions scripts/gh-pages-deploy.js

This file was deleted.

0 comments on commit b262405

Please sign in to comment.