From f933acb5a1aab1cd18b747021b3a12fa255670ec Mon Sep 17 00:00:00 2001 From: Lionel Untereiner Date: Fri, 15 Mar 2024 18:41:37 +0100 Subject: [PATCH] WIP: deployment --- .github/workflows/deploy.yml | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000000..347ccb9d868 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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/release-action@v1.12.0 + with: + allowUpdates: true + draft: false + makeLatest: true + name: ${{ steps.semver.outputs.next }} + body: Changelog Contents + token: ${{ github.token }} \ No newline at end of file