Files
bash-tui-toolkit/.circleci/config.yml
Timo Reymann 7b7380592b fix: Set author for gh release and make upload to gh pages more robust
fix: Fix gh pages upload for releases script
2024-08-22 17:39:36 +02:00

52 lines
1.3 KiB
YAML

version: "2.1"
orbs:
shellcheck: circleci/shellcheck@3.2.0
semantic-release: trustedshops-public/semantic-release@6.0.0
jobs:
semantic-release:
executor: semantic-release/default
steps:
- checkout
- setup_remote_docker
- semantic-release/install:
additional_packages: '@semantic-release/exec'
- run:
name: Install os dependencies
command: |
sudo apt-get update -y
sudo apt-get install -y gettext uuid-runtime
- semantic-release/execute
upload-release-to-gh-pages:
executor: semantic-release/default
steps:
- checkout
- run:
name: Configure git
command: |
git config --global user.email "no-reply@circleci.com"
git config --global user.name "CircleCI"
- run:
name: Wait a bit for release tag to be created
command: sleep 10
- run:
name: Upload release to pages
command: ./scripts/upload-release-to-pages.sh "${CIRCLE_TAG}"
workflows:
main:
jobs:
- shellcheck/check:
name: shellcheck
dir: src
- semantic-release:
requires:
- shellcheck
- upload-release-to-gh-pages:
filters:
tags:
only: /.*/
branches:
ignore: /.*/