Skip to content

Commit 2049417

Browse files
committed
Simplified drawing operations. Updated docs. Added examples
1 parent c5e9b33 commit 2049417

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/pages.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ on:
44
branches:
55
- main
66

7+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
# Allow only one concurrent deployment
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
718
jobs:
819
build:
920
runs-on: ubuntu-latest
@@ -21,10 +32,22 @@ jobs:
2132
run: cd docs && bundle install
2233

2334
- name: Build site
24-
run: cd docs && bundle exec jekyll build --source docs --destination _site
35+
run: cd docs && bundle exec jekyll build --destination _site
36+
# Removed the --source docs part since you're already in the docs directory
2537

26-
- name: Deploy to GitHub Pages
38+
- name: Upload artifact
2739
uses: actions/upload-pages-artifact@v3
2840
with:
2941
path: docs/_site
3042

43+
# Deployment job
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)