Skip to content

Commit

Permalink
WIP - autopublish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
steebe committed Dec 5, 2023
1 parent 9776667 commit 160f3b3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: main

on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Configure Python3
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Install pyinstaller
run: pip install pyinstaller && pip install -r requirements.txt

- name: Bootstrap venv
run: script/init.sh && source script/env-up.sh

- name: Build latest release
run: pyinstaller --onefile --paths unminipy-env/lib/python3.11/site-packages --hidden-import pyperclip -n unminipy unmini.py

- name: Release
uses: ncipollo/release-action@v1.13.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
allowUpdates: false
artifacts: "dist/unminipy"
bodyFile: releases.md
draft: false
makeLatest: true
name: Release ${{ github.ref }}
prerelease: false
removeArtifacts: true
skipIfReleaseExists: true
tag: ${{ github.ref }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __pycache__/
# pyinstaller
build/
dist/
*.tar.*

# OS
*.local
Expand Down
3 changes: 3 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v1.0.0
unminipy v1: a simple executable that allows for converting minified JSON provided either thru the user's clipboard
or a local file into an unminified format.

0 comments on commit 160f3b3

Please sign in to comment.