Skip to content

Commit

Permalink
Deploy CI: build all icons too (#1698)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 26, 2023
1 parent c0e1542 commit f0bf5a4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ on:
release:
types:
- published
workflow_dispatch:

env:
FORCE_COLOR: 2
NODE: 18

jobs:
deploy:
build:
runs-on: ubuntu-latest
if: github.repository == 'twbs/icons'
if: github.repository == 'twbs/icons' && startsWith(github.ref, 'refs/tags/v')

steps:
- name: Clone repository
Expand All @@ -29,11 +30,8 @@ jobs:
- name: Install npm dependencies
run: npm ci

- name: Build the icons
run: npm run icons

- name: Build the docs
run: npm run docs-build
- name: Prepare release
run: npm run release

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -44,9 +42,9 @@ jobs:
publish_dir: ./_site/

publish:
needs: deploy
needs: build
runs-on: ubuntu-latest
if: github.repository == 'twbs/icons'
if: github.repository == 'twbs/icons' && startsWith(github.ref, 'refs/tags/v')

steps:
- name: Clone repository
Expand Down

0 comments on commit f0bf5a4

Please sign in to comment.