Skip to content

Commit

Permalink
chore(workflow): update release workflow
Browse files Browse the repository at this point in the history
Update the release workflow to include a new step for running tests before the release. Also, modify the push tags condition to allow any branch to trigger the workflow.
  • Loading branch information
dikkadev committed Aug 6, 2023
1 parent 3ad7d28 commit 354e42f
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release
name: Test and Release

on:
push:
tags:
- '*'
- '**'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -40,6 +40,25 @@ jobs:
cd build
make
- name: Test
run: |
cd build
./tests.exe
release:
needs: build
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: ./build/

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 354e42f

Please sign in to comment.