Skip to content

Commit

Permalink
Revert "[temporary] remove CI for github pages" (Polkadot-Blockchain-…
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-web3 authored Nov 11, 2022
1 parent 7cfb6fd commit d6b9897
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and delpoy to `gh-pages`

on:
push:
branches:
- ds/try

jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ds/try
- name: Yarn
uses: bahmutov/npm-install@HEAD
with:
working-directory: slide-generator
- name: Build to `slide-generator/build` dir
run: yarn build-github-pages
working-directory: slide-generator
- name: Deploy to `gh-pages` branch
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: slide-generator/build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d6b9897

Please sign in to comment.