Specify prelease repository

This commit is contained in:
Djuri Baars 2024-06-09 19:52:06 +02:00
parent 3eb23209e8
commit b28b10e604
2 changed files with 17 additions and 8 deletions

View file

@ -1,12 +1,6 @@
name: Build artifacts
name: Build artifacts and make release
on:
workflow_dispatch:
inputs:
directory:
description: 'Directory to run Docker command in'
required: true
default: '.'
on: workflow_dispatch
jobs:
build-windows:
@ -37,9 +31,23 @@ jobs:
run: |
docker run --rm \
--volume "${{ github.workspace }}:/src/" \
--env SPECFILE=./BTClockOTA.spec \
batonogov/pyinstaller-windows:latest
- name: Get current block
id: getBlockHeight
run: echo "blockHeight=$(curl -s https://mempool.space/api/blocks/tip/height)" >> $GITHUB_OUTPUT
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: dist/
- name: Create release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.getBlockHeight.outputs.blockHeight }}
commit: main
name: release-${{ steps.getBlockHeight.outputs.blockHeight }}
artifacts: 'dist/**'
allowUpdates: true
removeArtifacts: true
makeLatest: true

View file

@ -1,3 +1,4 @@
-f https://wxpython.org/Phoenix/snapshot-builds/
Requests==2.32.3
wxPython==4.2.2a1.dev5670+a207b407
zeroconf==0.132.2