Skip to content

Commit

Permalink
ci(release): add manual release feature
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Apr 14, 2024
1 parent 17c4ebe commit e6ee439
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 154 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/manually_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
on:
workflow_dispatch:
env:
PYTHONIOENCODING: utf-8
PYTHONLEGACYWINDOWSSTDIO: utf-8
jobs:
manual-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
permissions:
contents: write
steps:
- name: Checkout git repo
uses: actions/checkout@v2
with:
path: main
submodules: 'true'
- name: Build zips & 7zs
run: python main/compiler/scripts/manual_release.py
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
main/compiler/comp_output_test/yaksha_v*.7z
main/compiler/comp_output_test/yaksha_v*.tar.gz
main/compiler/comp_output_test/yaksha_v*.zip
draft: 'true'
fail_on_unmatched_files: 'false'
manual-release-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11]
permissions:
contents: write
steps:
- name: Install software
run: brew install cmake ninja gcc p7zip
- name: Checkout git repo
uses: actions/checkout@v2
with:
path: main
submodules: 'true'
- name: Build zips & 7zs
run: python main/compiler/scripts/manual_release.py
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
main/compiler/comp_output_test/yaksha_v*.7z
main/compiler/comp_output_test/yaksha_v*.tar.gz
main/compiler/comp_output_test/yaksha_v*.zip
draft: 'true'
fail_on_unmatched_files: 'false'
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: main/compiler/comp_output_test/yaksha_v*.7z
files: |
main/compiler/comp_output_test/yaksha_v*.7z
main/compiler/comp_output_test/yaksha_v*.tar.gz
main/compiler/comp_output_test/yaksha_v*.zip
draft: 'true'
fail_on_unmatched_files: 'false'
5 changes: 4 additions & 1 deletion .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: main/compiler/comp_output_test/yaksha_v*.7z
files: |
main/compiler/comp_output_test/yaksha_v*.7z
main/compiler/comp_output_test/yaksha_v*.tar.gz
main/compiler/comp_output_test/yaksha_v*.zip
draft: 'true'
fail_on_unmatched_files: 'false'
Loading

0 comments on commit e6ee439

Please sign in to comment.