Skip to content

Commit

Permalink
ci(release): only build 7z, draft release by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Dec 17, 2023
1 parent 1ec098b commit 697a002
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
strategy:
matrix:
os: [windows-2019]
permissions:
contents: write
steps:
- name: Checkout git repo
uses: actions/checkout@v2
Expand All @@ -23,6 +25,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
main/compiler/comp_output_test/yaksha_v*.zip
main/compiler/comp_output_test/yaksha_v*.7z
files: main/compiler/comp_output_test/yaksha_v*.7z
draft: 'true'
fail_on_unmatched_files: 'false'
8 changes: 5 additions & 3 deletions .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
strategy:
matrix:
os: [macos-11]
permissions:
contents: write
steps:
- name: Install software
run: brew install cmake ninja gcc p7zip
Expand All @@ -25,6 +27,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
main/compiler/comp_output_test/yaksha_v*.zip
main/compiler/comp_output_test/yaksha_v*.7z
files: main/compiler/comp_output_test/yaksha_v*.7z
draft: 'true'
fail_on_unmatched_files: 'false'
3 changes: 0 additions & 3 deletions compiler/scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,6 @@ def build_release(name: str):
# create package .7z
archive = create_package(directory, name, ".7z")
print(Colors.blue(os.path.basename(archive)), "✔️")
# create package .zip
archive = create_package(directory, name, ".zip")
print(Colors.blue(os.path.basename(archive)), "✔️")
# clean up
shutil.rmtree(directory)
shutil.rmtree(temp)
Expand Down

0 comments on commit 697a002

Please sign in to comment.