diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..48e334c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release + +on: + release: + types: [published] + +jobs: + update-tags: + permissions: + contents: write + runs-on: ubuntu-latest + if: ${{ github.event.release.prerelease == false }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Update major and minor version tags + uses: sersoft-gmbh/running-release-tags-action@v3 + with: + create-release: false diff --git a/README.md b/README.md index 373faf4..e31a13e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # setup-openfoam [![CI](https://github.com/gerlero/setup-openfoam/actions/workflows/ci.yml/badge.svg)](https://github.com/gerlero/setup-openfoam/actions/workflows/ci.yml) +[![Release](https://github.com/gerlero/setup-openfoam/actions/workflows/release.yml/badge.svg)](https://github.com/gerlero/setup-openfoam/actions/workflows/release.yml) ![OpenFOAM](https://img.shields.io/badge/openfoam-.com%20|%20.org-informational) Installs and activates a specific version of OpenFOAM in the GitHub Actions environment.