-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflows (matching conventions from
cubing.js
).
- Loading branch information
Showing
2 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
38
.github/workflows/deploy.yml → .github/workflows/pages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|