summaryrefslogtreecommitdiffstats
path: root/.github/workflows/deploy.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-03 09:10:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-03 09:10:03 +0000
commit9aeff034f5cdf4e22090904bf9dfecf439b34658 (patch)
tree7ed7a2f5bc0291104a79f90f547c4b250e50c21b /.github/workflows/deploy.yml
parentReleasing debian version 1.10.4+dfsg-1. (diff)
downloadbootstrap-icons-9aeff034f5cdf4e22090904bf9dfecf439b34658.tar.xz
bootstrap-icons-9aeff034f5cdf4e22090904bf9dfecf439b34658.zip
Merging upstream version 1.10.5+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/deploy.yml')
-rw-r--r--.github/workflows/deploy.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 4e9a939..c203bbc 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -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
@@ -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
@@ -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