Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ritikarawlani committed Oct 4, 2024
1 parent 8466188 commit b24e013
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release build

on:
release:
types: [created]
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
outputs:
file_exists: ${{ steps.checkfile.outputs.exists }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}

- name: Check for publication-request.json
id: checkfile
run: |
if [[ -f "publication-request.json" ]]; then
echo "::set-output name=exists::true"
else
echo "::set-output name=exists::false"
fi
trigger:
needs: check
if: needs.check.outputs.file_exists == 'true'
uses: WorldHealthOrganization/smart-html/.github/workflows/release.yml@main
# with:
# tag_name: ${{ github.event.release.tag_name }}

0 comments on commit b24e013

Please sign in to comment.