Skip to content

Commit

Permalink
Stubbed out step for building the release artifacts
Browse files Browse the repository at this point in the history
- Reverted check_version to it's non-falsy self
  • Loading branch information
naschorr committed Mar 10, 2024
1 parent bb1e3c7 commit 1195f79
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/scripts/check_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ def _get_electron_manifest_version(self, file_path: Path) -> SemanticVersion:


def check_versions(self, latest_released_version: str) -> bool:
return False

path_version_map = {}

## Get the Electon Manifest version
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@ on: push
# push:
# branches: [ "main", "master" ]

env:
REPO_DIR: drgss

jobs:
call_check_version:
uses: ./.github/workflows/check_version.yml

build_and_test:
build_and_release:
runs-on: windows-latest
needs: call_check_version
if: always() && (needs.call_check_version.result == 'success')

steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
path: ${{ env.REPO_DIR }}

- name: Setup .NET
uses: actions/setup-dotnet@v2
Expand All @@ -27,10 +32,18 @@ jobs:
- name: Restore dependencies
run: dotnet restore

## Might as well build and test since we're here
- name: Build
run: dotnet build --no-restore

- name: Test
run: dotnet test --no-build --verbosity normal

## Will be set up for releasing soon -- still testing right now
## This lets us build the electron app
- name: Install ElectronNET.CLI
run: dotnet tool install ElectronNET.CLI -g

- name: Build Release Artifact
shell: bash
run: |
cd ${{ env.REPO_DIR }}/GUI && electronize build /target win

0 comments on commit 1195f79

Please sign in to comment.