Skip to content

Commit

Permalink
new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata committed Mar 8, 2024
1 parent a07743b commit ed27e1e
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 7 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Test (npm)

on:
workflow_dispatch:
pull_request:
# push:
# branches:
# - main

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

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v4
name: Setup Node
with:
node-version: 18
- name: Install dependencies
run: npm i
- name: Build the site
run: npm run build
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Deploy to GitHub Pages (npm)

on:
workflow_dispatch:
# push:
# branches:
# - main
push:
branches:
- main

permissions:
contents: read
Expand All @@ -22,9 +22,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.11.0
node-version: 18
- name: Install dependencies
run: npm i
- name: Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.11.0
node-version: 18
- name: Install dependencies
run: npm i
- name: Build
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/old-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy to GitHub Pages (npm)

on:
workflow_dispatch:
# push:
# branches:
# - main

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

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm i
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit ed27e1e

Please sign in to comment.