From a2a14ae480b29113ea84a5db7ff37da5f5cc744f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Thomas?= Date: Wed, 2 Nov 2022 21:11:08 +0100 Subject: [PATCH] Use GitHub releases for builds Fixes #41 --- .github/workflows/main.yml | 39 +++++++++++++++++++++++++++----------- README.md | 2 +- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 685f11eae7..559aae6a75 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: MAKEFLAGS: -j4 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup if: ${{ runner.os == 'Linux' }} @@ -53,16 +53,33 @@ jobs: done env: ${{ matrix.env }} - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: - name: ${{ matrix.env.OS }} + name: build-${{github.run_number}}-${{ matrix.env.OS }}.zip path: build/*.zip + upload: + needs: build + if: github.ref == 'refs/heads/urt' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 - - uses: google-github-actions/upload-cloud-storage@main - if: ${{ github.ref == 'refs/heads/urt' }} - with: - credentials: ${{ secrets.gcp_credentials }} - path: build - destination: builds.iourtm9.tk/builds/build-${{ github.run_number }} - parent: false - glob: '*.zip' + - uses: rickstaa/action-create-tag@v1 + with: + tag: builds/${{github.run_number}} + force_push_tag: true + + - name: Download all workflow run artifacts + uses: actions/download-artifact@v3 + with: + path: build + + - uses: xresloader/upload-to-github-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + file: build/*/*.zip + tag_name: builds/${{github.run_number}} + overwrite: true + draft: false \ No newline at end of file diff --git a/README.md b/README.md index d50114aba2..7de838823c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://github.com/mickael9/ioq3/actions/workflows/main.yml/badge.svg)](https://github.com/mickael9/ioq3/actions/workflows/main.yml) -[Download prebuilt binaries for Linux/macOS/Windows](http://builds.iourtm9.tk/builds/) +[Download prebuilt binaries for Linux/macOS/Windows](https://github.com/mickael9/ioq3/releases) This project is an initiative to backport the relevant ioUrbanTerror-specific features to an up-to-date ioquake3.