Skip to content

Commit

Permalink
chore: try building develop branch and uploading artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: miigotu <[email protected]>
  • Loading branch information
miigotu committed Feb 2, 2024
1 parent e63126d commit 1b23f61
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 95 deletions.
65 changes: 33 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@
name: Pypi
name: Build develop branch

on:
workflow_run:
workflows: [ "Python Packaging" ]
branches: |
- master
- test-deploy
# tags:
# - 20*
- develop
type:
- complete

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
Release:
runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == "success" && github.actor == "miigotu"
version:
runs-on: ubuntu-latest
steps:
- name: Checkout SickChill
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Get new version string
uses: miigotu/actions-calver@workflows
id: next-version
with:
release: false
pre: true
draft: true
date_format: "%Y.%m.%-d"
patch_separator: "-"
version_regexp: '^20[^\-]*$'
release_branch: ${{ github.branch }}
- name: Set up Node
uses: actions/setup-node@v4
with:
fetch-depth: 0
path: sickchill
node-version: '20.x'
cache: 'yarn'
- name: Install yarn
run: npm install -g yarn
- name: Setup Poetry
uses: 5yutan5/[email protected]
with:
python-version: ${{ matrix.python-version }}
python-cache-dependency-path: sickchill/pyproject.toml
- name: Bump version
run: |
poetry install
# Set release version to todays date
# debchange with gbd-change with new version
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
working-directory: sickchill
run: |
git config --global user.name miigotu
git config --global user.email [email protected]
python-version: "3.11"
python-cache-dependency-path: pyproject.toml
- run: |
poetry version ${{ steps.next-version.outputs.release }}
yarn version ${{ steps.next-version.outputs.release }}
poetry build
poetry publish
- uses: actions/upload-artifact@v4
with:
name: Result
path: |
dist/*.whl
dist/*.tar.gz
62 changes: 0 additions & 62 deletions .github/workflows/release_info.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sickchill",
"version": "4.0.73-5.3",
"version": "4.0.72",
"private": true,
"repository": {
"type": "git",
Expand Down

0 comments on commit 1b23f61

Please sign in to comment.