Skip to content

Commit

Permalink
Automatic releases on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
proxict committed Jul 25, 2024
1 parent 953abba commit 043c536
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: build

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
- master
- develop

jobs:
linux:
Expand Down Expand Up @@ -36,11 +37,11 @@ jobs:
run: cmake --build build --parallel

- name: Publish release
if: ${{ env.publish_tag }}
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: ${{ env.publish_tag }}
tag: ${{ github.ref_name }}
artifacts: "build/bin/cod4x_*.dll"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 043c536

Please sign in to comment.