Skip to content

Commit

Permalink
Try to build Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk committed Jul 10, 2023
1 parent 404e0f9 commit 8adeeab
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages
# Workflow for generate and deploy static content to GitHub Pages
name: Deploy static content to Pages

on:
Expand Down Expand Up @@ -31,8 +31,30 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: npm ci
- name: Generate HTML files from asciidoc
run: npm run build *.adoc */*.adoc
- name: List of the result HTML files
run: find . -type f -not -path '*/\.*' -not -path '*/node_modules/*' -name "*.html"
- name: Prepare directory with resources for web
run: mkdir .public
- run: cp -r javascripts .public
- run: cp -r stylesheets .public
- run: cp -r node_modules/reveal.js .public/javascripts
- name: Copy all HTML files
run: find . -type f -not -path '*/\.*' -not -path './node_modules/*' -not -path './common/*' -name "*.html" -exec cp --parents -t "./.public" {} +
- name: Copy all images directories
run: find . -type d -name "images" -not -path '*/\.*' -not -path './node_modules/*' -exec cp -r --parents -t "./.public" {} +
- run: mv .public public
- run: ls -la ./public
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 8adeeab

Please sign in to comment.