Skip to content

Commit a4a7893

Browse files
author
nan
committed
Revert "Delete GitHub Pages deployment workflow"
This reverts commit 2621d14.
1 parent 89fdd6d commit a4a7893

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,57 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
13

4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: [main]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
env:
24+
# Hosted GitHub runners have 7 GB of memory available, let's use 6 GB
25+
NODE_OPTIONS: --max-old-space-size=6144
26+
27+
jobs:
28+
# Single deploy job since we're just deploying
29+
deploy:
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Set up Node.js
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: 16.x
43+
cache: yarn
44+
- name: Install dependencies
45+
run: yarn install --frozen-lockfile --non-interactive
46+
- name: Build
47+
run: yarn build
48+
- name: Setup Pages
49+
uses: actions/configure-pages@v3
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v2
52+
with:
53+
# Upload entire repository
54+
path: build
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)