Skip to content

Commit

Permalink
ci: add Release Please (#2019) (#2020)
Browse files Browse the repository at this point in the history
* ci: add Release Please (#2019)
* ci: sync new releases to production and staging (#2019)
  • Loading branch information
greatislander authored Nov 29, 2023
1 parent bb79a0c commit ade838c
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish release

on:
workflow_dispatch:
push:
branches: [dev]

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: php
package-name: accessibility-exchange/platform
pull-request-title-pattern: "chore(release): release ${version}"
24 changes: 24 additions & 0 deletions .github/workflows/sync-to-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Sync release to production

on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
type: string
release:
types: [released]

jobs:
sync-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Open pull request to production
uses: tretuna/sync-branches@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FROM_BRANCH: ${{ inputs.version || github.event.release.tag_name }}
TO_BRANCH: "production"
PULL_REQUEST_TITLE: "chore(release): sync ${{ inputs.version || github.event.release.tag_name }} to production"
24 changes: 24 additions & 0 deletions .github/workflows/sync-to-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Sync release to staging

on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
type: string
release:
types: [published]

jobs:
sync-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Open pull request to staging
uses: tretuna/sync-branches@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FROM_BRANCH: ${{ inputs.version || github.event.release.tag_name }}
TO_BRANCH: "staging"
PULL_REQUEST_TITLE: "chore(release): sync ${{ inputs.version || github.event.release.tag_name }} to staging"

0 comments on commit ade838c

Please sign in to comment.