From e37a977ca617dcf3c84413c0781d3bba2b280873 Mon Sep 17 00:00:00 2001 From: Lea Vauchier Date: Mon, 24 Jun 2024 17:09:18 +0200 Subject: [PATCH] Add gh-action to create a release on v*.*.* tags --- .github/workflows/cicd_docker.yml | 2 +- .github/workflows/cicd_release.yml | 18 ++++++++++++++++++ .github/workflows/cicd_test.yml | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cicd_release.yml diff --git a/.github/workflows/cicd_docker.yml b/.github/workflows/cicd_docker.yml index f89233f..1adcbff 100644 --- a/.github/workflows/cicd_docker.yml +++ b/.github/workflows/cicd_docker.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build docker image run: docker build -t ${{ env.DOCKER_IMAGE_NAME }}:test . diff --git a/.github/workflows/cicd_release.yml b/.github/workflows/cicd_release.yml new file mode 100644 index 0000000..b328ae8 --- /dev/null +++ b/.github/workflows/cicd_release.yml @@ -0,0 +1,18 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + make_latest: true \ No newline at end of file diff --git a/.github/workflows/cicd_test.yml b/.github/workflows/cicd_test.yml index 4a92fc0..780dab7 100644 --- a/.github/workflows/cicd_test.yml +++ b/.github/workflows/cicd_test.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: install cppunit run: sudo apt install -y libcppunit-dev