Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pba-content public #878

Merged
merged 4 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml

This file was deleted.

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: GitHub Pages Publish

on:
push:
branches: [main]

jobs:
gh-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- run: yarn install
- name: Build
working-directory: "."
run: yarn build:pages
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
"version": "0.1.0",
"description": "Polkadot Blockchain Academy",
"scripts": {
"start": "reveal-md ./ --watch --absolute-url http://localhost:1948",
"s": "yarn start",
"dev": "yarn start",
"dev": "reveal-md ./ --watch --absolute-url http://localhost:1948",
"help-rmd": "reveal-md --help",
"build": "rm -rf build && reveal-md ./ --static build",
"build-internal-static-slides": "rm -rf build && reveal-md ./ --static build --absolute-url https://do-not-share-pba-internal.on.fleek.co/",
"build-slides-for-site-book": "rm -rf ../src/slides && reveal-md ./ --static ../src/slides --absolute-url https://polkadot-blockchain-academy.github.io/pba-site/",
"build-student-static-slides": "rm -rf build && reveal-md ./ --static build --absolute-url https://polkadot-blockchain-academy.on.fleek.co/ --glob 'syllabus/[0-8]*/**/*[Ss]lides.md'",
"deploy": "yarn build && gh-pages -d build",
"serve": "http-server ./build -p 1949 -s & echo server started http://localhost:1949",
"fmt": "prettier --config .prettierrc.js --write '**/*.md'",
"fmt-book": "prettier --config .prettierrc.js --write '../src/**/*.md'",
Expand All @@ -21,6 +17,7 @@
"reveal-md": "^5.5.2"
},
"devDependencies": {
"gh-pages": "^6.1.0",
"http-server": "^14.1.1",
"markdown-link-check": "^3.10.3",
"prettier": "^2.6.2"
Expand Down
Loading