Skip to content

Commit

Permalink
Update workflows (matching conventions from cubing.js).
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 2, 2025
1 parent aa7be85 commit 1186df5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/check.yml → .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Check
on: pull_request
name: CI

on: [pull_request, push]

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run build
- run: make build
- run: make lint
38 changes: 19 additions & 19 deletions .github/workflows/deploy.yml → .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Deploy to GitHub Pages
name: icons.cubing.net

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

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

jobs:
build-pages:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [2.x]

steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run build
- name: Setup git config
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Commit
run: |
git add -f www
git commit -m "Build for deploy"
- name: Build
run: |
npm ci
make build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: make build-site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./www
path: ./dist/sites/icons.cubing.net/
retention-days: 1

deploy-pages:
Expand Down

0 comments on commit 1186df5

Please sign in to comment.