-
-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: try building develop branch and uploading artifacts
Signed-off-by: miigotu <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters