Skip to content

Commit

Permalink
Restore old workflow until new one works properly (d4lfteam#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro authored Jun 17, 2024
1 parent 520c2a4 commit 9c1d03d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Release
on:
pull_request:
types: [closed]
workflow_dispatch:

concurrency:
group: release
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
push:
tags:
- '*'

concurrency:
group: release

jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/setup_env

- name: Build & Zip exe
shell: powershell
run: |
python build.py
$version = python -c "from src import __version__; print(__version__)"
$folderName = "d4lf_v" + $version
Compress-Archive -Path $folderName -DestinationPath "$folderName.zip"
- name: Check if beta
shell: powershell
run: |
if ("${{ github.ref }}".Contains("beta")) {
echo "IS_BETA=true" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
} else {
echo "IS_BETA=false" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: d4lf_v*.zip
generate_release_notes: true
prerelease: ${{ env.IS_BETA == 'true' }}

0 comments on commit 9c1d03d

Please sign in to comment.