aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/create_release.yml
diff options
context:
space:
mode:
authorJoakim Lindqvist <[email protected]>2024-09-16 16:52:50 +0200
committerGitHub Enterprise <[email protected]>2024-09-16 16:52:50 +0200
commit37bc61f2031731022c82e0ae2689d1c7f0182ff3 (patch)
tree7e7e249407bfd3db8faca98851f9d3996fd189e7 /.github/workflows/create_release.yml
parent5.5.7 (diff)
downloadzen-37bc61f2031731022c82e0ae2689d1c7f0182ff3.tar.xz
zen-37bc61f2031731022c82e0ae2689d1c7f0182ff3.zip
Running the public github release mirroring as part of creating the release (#158)
* Running the public github release mirroring as part of creating the release This because workflows does not trigger events when created using the built in GITHUB_TOKEN so the release we create does not trigger the release replication workflow.
Diffstat (limited to '.github/workflows/create_release.yml')
-rw-r--r--.github/workflows/create_release.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml
index c7aee4ae4..10b772ea7 100644
--- a/.github/workflows/create_release.yml
+++ b/.github/workflows/create_release.yml
@@ -257,3 +257,26 @@ jobs:
- name: Finalize Release in Sentry
run: |
scripts/sentry-cli --auth-token ${{ secrets.SENTRY_API_KEY }} releases finalize --org to --project zen-server ${{steps.read_version.outputs.content}}
+
+ - name: Replicate release to public github
+ uses: ue-foundation/[email protected]
+ with:
+ token: ${{ secrets.ZEN_RELEASE_GITHUB_EE_TOKEN }}
+ src_repo: ue-foundation/zen
+ src_repo_github_api_url: https://api.github.ol.epicgames.net
+
+ dest_token: ${{ secrets.ZEN_RELEASE_GITHUB_TOKEN }}
+ dest_repo: EpicGames/zen
+ dest_repo_github_api_url: https://api.github.com
+
+ copy_assets: true
+
+ # only replicate the given release
+ limit: 1
+
+ # Set the minimum version to accept to the release we just created, in combination with only replicating one release this should only replicate the release we just made
+ min_version: v${{steps.read_version.outputs.content}}
+
+ # we skip replicating pre and draft releases to keep the public repo focused on the releases itself
+ skip_prerelease: true
+ skip_draft: true