Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automate github releases upload based on tags #2

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
3 changes: 1 addition & 2 deletions .github/workflows/ci_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

Expand All @@ -31,4 +30,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: OpenArena-macOS-x86_64
path: engine/openarena-engine-source-*/build/release-darwin-x86_64/*.x86_64
path: engine/openarena-engine-source-*/build/release-darwin-x86_64/*.x86_64
25 changes: 25 additions & 0 deletions .github/workflows/ci_releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI Releases

on:
push:
tags:
- '*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ci_builds.yml
workflow_conclusion: success
path: ./artifacts/
event: push
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: zip
GHR_PATH: ./artifacts/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}