Skip to content

Commit

Permalink
ci: migrate build pipeline to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 28, 2023
1 parent 2a887c1 commit d0e612e
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 80 deletions.
74 changes: 0 additions & 74 deletions .appveyor.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Releases
name: Deploy to GitHub Releases for macOS

on:
push:
Expand All @@ -22,7 +22,7 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -e .
- name: Build app
- name: Build macOS app
working-directory: ./build-recipes
run: |
bash ./macos_build_app.sh DCKit ${{ env.RELEASE_VERSION }}
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/deploy_github_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy to GitHub Releases for Windows

on:
push:
tags:
- '*'

jobs:
build:
name: Create Release
runs-on: windows-latest
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -e .
- name: Build windows executable
working-directory: ./build-recipes
run: |
pip install -r win_build_requirements.txt
pyinstaller -y --log-level=WARN win_DCKit.spec
# Run the binary (the most simple test)
dist\\DCKit\\DCKit.exe --version
python win_make_iss.py
ISCC.exe /Q /Q win_dckit.iss
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: DCKit ${{ github.ref }}
body: |
![](https://img.shields.io/github/downloads/DC-analysis/DCKit/${{ env.RELEASE_VERSION }}/total.svg)
draft: true
prerelease: false
- name: Upload Release Asset EXE
id: upload-release-asset-exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build-recipes/Output/*
asset_content_type: application/zip
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
|DCKit|
=======

|PyPI Version| |Build Status Unix| |Build Status Win| |Coverage Status|
|PyPI Version| |Build Status| |Coverage Status|


**DCKit** is a graphical toolkit for performing several data editing
Expand Down Expand Up @@ -44,9 +44,7 @@ Testing
.. |DCKit| image:: https://raw.github.com/DC-analysis/DCKit/master/docs/logo/dckit_h50.png
.. |PyPI Version| image:: https://img.shields.io/pypi/v/dckit.svg
:target: https://pypi.python.org/pypi/dckit
.. |Build Status Unix| image:: https://img.shields.io/github/actions/workflow/status/DC-analysis/DCKit/check.yml
.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DC-analysis/DCKit/check.yml
:target: https://github.com/DC-analysis/DCKit/actions?query=workflow%3AChecks
.. |Build Status Win| image:: https://img.shields.io/appveyor/build/paulmueller/dckit
:target: https://ci.appveyor.com/project/paulmueller/DCKit
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DC-analysis/DCKit/master.svg
:target: https://codecov.io/gh/DC-analysis/DCKit

0 comments on commit d0e612e

Please sign in to comment.