Skip to content

Commit

Permalink
split release into separate workflow that runs manually
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed Jun 26, 2022
1 parent f5622d1 commit f10b0eb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,3 @@ jobs:

- name: Execute Unit tests
run: php tests/index.php

release:
runs-on: ubuntu-latest

name: Release

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.5

- name: Run automated release process with semantic-release
if: github.event_name == 'push'
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

name: Release

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.5

- name: Run automated release process with semantic-release
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f10b0eb

Please sign in to comment.