From 39b20774fc4684f390aa426148371c316e37c98d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 1 Nov 2019 13:18:14 +0100 Subject: Added release at push when tag is set --- .github/workflows/build.yml | 9 +++++++++ .github/workflows/release.yml | 25 ------------------------- 2 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/release.yml (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 637028e..a35533f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,3 +16,12 @@ jobs: run: sudo apt-get update && sudo apt-get install -y build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libcloog-isl-dev libisl-0.18-dev curl nasm grub2 qemu qemu-kvm mtools - name: Build run: make cross build + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/melvix.iso + name: Melvix Weekly Release + prerelease: 1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 87e3ea4..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Weekly project build and release - -on: - schedule: - - cron: "0 2 * * 0" - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Install - run: sudo apt-get update && sudo apt-get install -y build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libcloog-isl-dev libisl-0.18-dev curl nasm grub2 qemu qemu-kvm mtools - - name: Build - run: make cross build - - name: Release - uses: softprops/action-gh-release@v1 - with: - files: build/melvix.iso - name: Melvix Weekly Release - prerelease: 1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3