Skip to content

Commit

Permalink
Try with github CI instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Dec 17, 2023
1 parent 5566da5 commit afa73df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/create_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
sha256_hash = hashlib.file_digest(f, "sha256").hexdigest()

# Include it in the filename.
filename = f"dist/gistim-{platform.system()}-{sha256_hash}.zip"
#filename = f"dist/gistim-{platform.system()}-{sha256_hash}.zip"
filename = f"dist/gistim-{platform.system()}.zip"
path.rename(filename)
18 changes: 5 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
tags:
- '*'
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -17,8 +14,6 @@ jobs:
content: write
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- name: Check out repo
Expand All @@ -29,11 +24,8 @@ jobs:
run: pixi run build-backend
- name: Create ZIP Archive
run: pixi run create-archive
- name: Upload archive to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/gistim-*.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Release
run: gh release create ${{github.ref_name}} dist/gistim-Windows.zip
env:
GITHUB_TOKEN: ${{ github.TOKEN }}

0 comments on commit afa73df

Please sign in to comment.