Skip to content

Commit

Permalink
Fixed env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 6, 2024
1 parent b44c490 commit 8ebbbd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- stable
#- main

jobs:
build:
Expand All @@ -17,8 +18,7 @@ jobs:
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
VERSION: 1.0.0.0
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
VERSION: 1.0.0.0 # Set the version number here

steps:
- name: Checkout code
Expand All @@ -29,6 +29,9 @@ jobs:
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Save version to GITHUB_ENV
run: echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV

- name: Restore dependencies
run: nuget restore

Expand Down Expand Up @@ -72,10 +75,11 @@ jobs:

- name: Create GitHub release for main branch
if: github.ref == 'refs/heads/main'
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: build/${{env.VERSION}}
name: MiriVoice v${{env.VERSION}} Beta
tag_name: build/${{ env.VERSION }}
name: MiriVoice v${{ env.VERSION }} Beta
draft: false
generate_release_notes: true
prerelease: true
Expand All @@ -84,10 +88,11 @@ jobs:

- name: Create GitHub release for stable branch
if: github.ref == 'refs/heads/stable'
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: build/${{env.VERSION}}
name: MiriVoice v${{env.VERSION}}
tag_name: build/${{ env.VERSION }}
name: MiriVoice v${{ env.VERSION }}
generate_release_notes: true
draft: false
prerelease: false
Expand Down
7 changes: 0 additions & 7 deletions Mirivoice.Desktop/appveyor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def write_info_plist():
os.system("git tag build/%s 2>&1" % (appcast_ver))
os.system("git push origin build/%s 2>&1" % (appcast_ver))

os.system("del *.xml 2>&1")

os.system("dotnet restore Mirivoice.Desktop/Mirivoice.Desktop.csproj -r win-x86")
os.system(
"dotnet publish Mirivoice.Desktop/Mirivoice.Desktop.csproj -c Release -r win-x86 -o Mirivoice.Desktop/bin/win-x86 -p:AssemblyVersion=%s" % (appcast_ver))
Expand All @@ -79,9 +77,6 @@ def write_info_plist():


elif sys.platform == 'darwin':
os.system("rm *.dmg")
os.system("rm *.xml")

os.system("git checkout Mirivoice.Desktop/Mirivoice.Desktop.csproj")
os.system(
"sed -i '' \"s/0.0.0/%s/g\" Mirivoice.Desktop/Mirivoice.Desktop.csproj" % (appcast_ver))
Expand All @@ -96,8 +91,6 @@ def write_info_plist():
write_appcast("macos", "osx-x64", "MiriVoice-osx-x64.zip")

else:
os.system("rm *.xml")

os.system("dotnet restore Mirivoice.Desktop/Mirivoice.Desktop.csproj -r linux-x64")
os.system(
"dotnet publish Mirivoice.Desktop/Mirivoice.Desktop.csproj -c Release -r linux-x64 -o Mirivoice.Desktop/bin/linux-x64 -p:AssemblyVersion=%s" % (appcast_ver))
Expand Down

0 comments on commit 8ebbbd4

Please sign in to comment.