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 05cbc1a
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 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,31 @@ jobs:
cd build
make
- name: Test
run: |
cd build
./tests.exe
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: ./build/

release:
needs: build
runs-on: windows-latest

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

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

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

0 comments on commit 05cbc1a

Please sign in to comment.