Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipinho committed Jan 7, 2024
1 parent bdf4e6c commit 04d062d
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
name: Deploy to GitHub Pages
name: Deploy static content to Pages

on:
push:
branches:
- main
branches: [main]

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

env:
NODE_OPTIONS: --max-old-space-size=6144

jobs:
deploy:
environment:
Expand All @@ -13,23 +27,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 16.x
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Build
run: yarn build

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

with:
path: build
- name: Deploy to GitHub Pages
Expand Down

0 comments on commit 04d062d

Please sign in to comment.