Skip to content

Commit

Permalink
WIP: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Untereiner committed Mar 15, 2024
1 parent bc0f67a commit f933acb
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy

on:
workflow_dispatch:

env:
BUMP_BEHAVIOR: Monday

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Detect API Change
id: changed-api
uses: tj-actions/changed-files@v43
with:
# Avoid using single or double quotes for multiline patterns
files: |
src/coreComponents/schema/**/*.{xsd,rst}
- name: Run step if test file(s) change
if: steps.changed-api.outputs.any_changed == 'true'
env:
BUMP_BEHAVIOR: "major"
run: |
echo "Must be a major change"
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: develop
noVersionBumpBehavior: patch

- name: Create Release
uses: ncipollo/[email protected]
with:
allowUpdates: true
draft: false
makeLatest: true
name: ${{ steps.semver.outputs.next }}
body: Changelog Contents
token: ${{ github.token }}

0 comments on commit f933acb

Please sign in to comment.