Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Merk committed Nov 8, 2023
1 parent 6e641ff commit 34db059
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/docs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,31 @@ on:
push:
branches:
- main

jobs:
deploy:
name: Deploy to GitHub Pages
name: deploy current jappuccini documentation to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- name: checkout repository
uses: actions/checkout@v4

- name: setup nodejs
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: Install dependencies
- name: install dependencies
run: npm ci

- name: check formatting
run: npm run prettier:check

- name: Build website
- name: build website
run: npm run build

- name: Deploy to GitHub Pages
- name: deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pull_request_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@ name: Pull Request Checks

on:
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
name: verify buildable state
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: setup nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: install dependencies
run: npm ci
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/pull_request_deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ concurrency:

jobs:
deploy-preview:
if: github.event.action != 'closed'
name: deploy current branch to GitHub Pages
runs-on: ubuntu-latest
if: github.event.action != 'closed'
steps:
- name: checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: setup nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: install dependencies
run: npm ci
Expand All @@ -39,11 +41,12 @@ jobs:
source-dir: ./build/

undeploy-preview:
if: github.event.action == 'closed'
name: undeploy current branch from GitHub Pages
runs-on: ubuntu-latest
if: github.event.action == 'closed'
steps:
- name: checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Deploy preview
uses: rossjrw/pr-preview-action@v1

0 comments on commit 34db059

Please sign in to comment.