Skip to content

Commit 019bb2d

Browse files
authored
Add GitHub actions workflows (#14)
* Update azure-pipelines.yml for Azure Pipelines (#3) * Create Standalone build example (#5) * Update README * Update azure-pipelines.yml for Azure Pipelines (#3) (#4) * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add htaccess file for https redirect * Add GA * Create first standalone example * Update examples (#7) * Update README * Update azure-pipelines.yml for Azure Pipelines (#3) (#4) * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml for Azure Pipelines * Add htaccess file for https redirect * Add GA * Create first standalone example * Add roadmap page and reduze image file sizes * Update build task docs to use yaml code instead of image * Update exampel yaml * Remove tabs from remaining docs * Fix typo * Fix gtag for anonymous analytics (#9) * Update azure-pipelines.yml for Azure Pipelines (#12) * Setup workflow
1 parent aa23faa commit 019bb2d

File tree

3 files changed

+10046
-6435
lines changed

3 files changed

+10046
-6435
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
name: Deploy to GitHub Pages
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16.x
17+
cache: npm
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Build website
22+
run: npm run build
23+
- name: Deploy to GitHub Pages
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./build
28+
# The following lines assign commit authorship to the official
29+
# GH-Actions bot for deploys to `gh-pages` branch:
30+
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
31+
user_name: github-actions[bot]
32+
user_email: 41898282+github-actions[bot]@users.noreply.github.com

.github/workflows/test-deploy.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test-deploy:
10+
name: Test deployment
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16.x
17+
cache: npm
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Test build website
22+
run: npm run build

0 commit comments

Comments
 (0)