Skip to content

Commit e3f219d

Browse files
authored
Merge pull request #204 from poingstudios/201-prepare-ios-spm
refactor: Trigger documentation deployment via workflow_run event upon successful manual release.
2 parents ceefd14 + a11cec7 commit e3f219d

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on:
55
- master
66
tags:
77
- '*'
8-
workflow_call:
8+
workflow_run:
9+
workflows: ["Manual Release Version"]
10+
types:
11+
- completed
912

1013
permissions:
1114
contents: write
1215

1316
jobs:
1417
deploy:
1518
runs-on: ubuntu-latest
19+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
1620
steps:
1721
- uses: actions/checkout@v6
1822
with:
@@ -31,7 +35,7 @@ jobs:
3135
git config user.email "github-actions[bot]@users.noreply.github.com"
3236
- name: Deploy documentation
3337
run: |
34-
if [[ $GITHUB_REF == refs/tags/* ]] || [[ $GITHUB_EVENT_NAME == "workflow_call" ]]; then
38+
if [[ $GITHUB_REF == refs/tags/* ]] || [[ $GITHUB_EVENT_NAME == "workflow_run" ]]; then
3539
VERSION=$(grep "version=" addons/admob/plugin.cfg | cut -d'"' -f2 | sed 's/^v//' | cut -d. -f1,2)
3640
3741
mike deploy --push --update-aliases $VERSION stable

.github/workflows/manual_release_version.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,4 @@ jobs:
5454
VERSION: ${{env.PLUGIN_VERSION}}
5555
COMMIT_HASH: ${{ github.sha }}
5656
run: |
57-
python3 static/workflow_files/push.py
58-
59-
deploy-docs:
60-
needs: release-version
61-
uses: ./.github/workflows/docs.yml
57+
python3 static/workflow_files/push.py

0 commit comments

Comments
 (0)