Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add Release Please (#2019) #2020

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish release

on:
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}"
18 changes: 18 additions & 0 deletions .github/workflows/sync-to-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sync release to production

on:
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: ${{ github.event.release.tag_name }}
TO_BRANCH: "production"
PULL_REQUEST_TITLE: "chore(release): sync ${{ github.event.release.tag_name }} to production"
18 changes: 18 additions & 0 deletions .github/workflows/sync-to-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sync release to staging

on:
release:
types: [prereleased, released]
greatislander marked this conversation as resolved.
Show resolved Hide resolved

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: ${{ github.event.release.tag_name }}
TO_BRANCH: "staging"
PULL_REQUEST_TITLE: "chore(release): sync ${{ github.event.release.tag_name }} to staging"