Skip to content

Commit

Permalink
create build+release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakudum committed Jan 8, 2024
1 parent a3f7229 commit 23b3788
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/built+release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Release

on:
push:
branches: [ "main" ]
workflow_dispatch: # manual trigger

jobs:
build:
permissions:
contents: write # allow to create a release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: latest
- name: Generate requirements.txt
run: |
pip3 install -U pip
pip3 install -U pipenv
pipenv install
pipenv requirements > requirements.txt
- name: Build
run: ./scripts/make-build.sh
- name: Make Archive
run: tar -cvz -C dist/ -f "dist/jarklin.tgz" jarklin/
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
draft: false
prerelease: false
title: "Jarklin Build"
files: |
dist/jarklin.tgz
# dist/jarklin.whl
# dist/jarklin.deb

0 comments on commit 23b3788

Please sign in to comment.