Skip to content

Commit

Permalink
Use GitHub releases for builds
Browse files Browse the repository at this point in the history
Fixes #41
  • Loading branch information
mickael9 committed Nov 2, 2022
1 parent c988f76 commit a2a14ae
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
MAKEFLAGS: -j4

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: setup
if: ${{ runner.os == 'Linux' }}
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a2a14ae

Please sign in to comment.