From 0d44a5ea5c96874cd2e4bc9fa8fbe9e2585723be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BChlmann?= Date: Mon, 15 Jul 2024 22:27:43 +0200 Subject: [PATCH] Combine ci --- .github/workflows/{build.yml => ci.yml} | 28 +++++++++++++++++++ .github/workflows/release.yml | 36 ------------------------- 2 files changed, 28 insertions(+), 36 deletions(-) rename .github/workflows/{build.yml => ci.yml} (59%) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 59% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index 8630158..31a832e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,31 @@ jobs: main.efi reboot.img + release: + needs: build + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Download build artifacts + uses: actions/download-artifact@v2 + with: + name: reboot-artifacts + path: ./artifacts + + - name: Create a Release + uses: elgohr/Github-Release-Action@v5 + with: + body_path: CHANGELOG.md + files: | + Release.txt + LICENSE + prerelease: false + draft: false + fail_on_unmatched_files: true + generate_release_notes: true + make_latest: true + permissions: + contents: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index e28fb8f..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: release - -on: - push: - tags: - - '*.*.*' - -jobs: - release: - needs: build - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Download build artifacts - uses: actions/download-artifact@v2 - with: - name: reboot-artifacts - path: ./artifacts - - - name: Create a Release - uses: elgohr/Github-Release-Action@v5 - with: - body_path: CHANGELOG.md - files: | - Release.txt - LICENSE - prerelease: false - draft: false - fail_on_unmatched_files: true - generate_release_notes: true - make_latest: true - permissions: - contents: write