2022-12-04 19:51:38 +03:00
|
|
|
name: CD
|
2024-04-14 00:15:27 +03:00
|
|
|
|
2022-12-04 19:51:38 +03:00
|
|
|
on:
|
|
|
|
push:
|
2024-10-29 17:56:32 +03:00
|
|
|
branches: [production]
|
|
|
|
tags-ignore: ["**"]
|
2022-12-04 19:51:38 +03:00
|
|
|
|
|
|
|
jobs:
|
2024-04-14 00:15:27 +03:00
|
|
|
release:
|
2024-10-29 17:56:32 +03:00
|
|
|
if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release)') }}
|
2024-04-14 00:15:27 +03:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
2022-12-04 19:51:38 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-14 00:15:27 +03:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
2024-04-20 19:22:01 +03:00
|
|
|
ruby-version: 3.3
|
2024-04-14 00:15:27 +03:00
|
|
|
bundler-cache: true
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-07-17 20:20:17 +03:00
|
|
|
node-version: lts/*
|
2024-04-14 00:15:27 +03:00
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- run: npx semantic-release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
|
|
|
|
|
|
|
|
publish:
|
|
|
|
needs: release
|
|
|
|
uses: ./.github/workflows/publish.yml
|
2024-05-12 02:35:58 +03:00
|
|
|
secrets:
|
|
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
|
|
BUILDER: ${{ secrets.BUILDER }}
|