-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (35 loc) · 1.15 KB
/
Copy pathbuild-voxta-python-base.yml
File metadata and controls
43 lines (35 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Python Folder Packaging
on:
push:
tags:
- "python-*"
jobs:
package-and-release:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.14.7]
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Run Cleanup Script
run: ./patches/python/prepare.ps1 $env:pythonLocation
- name: Zip Python Folder
run: 7z a python-${{ matrix.python-version }}-amd64-voxtapack.zip $env:pythonLocation/*
- name: Compute SHA-1 Hash
id: sha1
run: |
$sha1 = (Get-FileHash python-${{ matrix.python-version }}-amd64-voxtapack.zip -Algorithm SHA1).Hash
echo "SHA1=$sha1" >> $GITHUB_ENV
echo "::set-output name=sha1::$sha1"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: "SHA-1 Hash: ${{ steps.sha1.outputs.sha1 }}"
draft: true
files: python-${{ matrix.python-version }}-amd64-voxtapack.zip