Skip to content

Commit

Permalink
adjust: CI -> release
Browse files Browse the repository at this point in the history
  • Loading branch information
StrayDragon committed Sep 2, 2022
1 parent 7af1af1 commit 743d19b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/CI.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: CI
name: Release

on:
push:
branches:
- main
- master
pull_request:
release:
types:
- "released"
# push:
# branches:
# - main
# - master
# pull_request:

jobs:
linux:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -23,7 +26,7 @@ jobs:
name: wheels
path: dist

windows:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -37,7 +40,7 @@ jobs:
name: wheels
path: dist

macos:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -54,8 +57,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs: [macos, windows, linux]
needs: [build-macos, build-windows, build-linux]
steps:
- uses: actions/download-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
```

[![CI](https://github.com/StrayDragon/cro3n/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/StrayDragon/cro3n/actions/workflows/CI.yml)
[![Release](https://github.com/StrayDragon/cro3n/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/StrayDragon/cro3n/actions/workflows/release.yml)
[![GitHub last commit](https://img.shields.io/github/last-commit/straydragon/cro3n)](https://github.com/StrayDragon/cro3n/commits)
[![PyPI](https://img.shields.io/pypi/v/cro3n)](https://pypi.org/project/cro3n)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cro3n)](https://pypi.org/project/cro3n)
Expand Down

0 comments on commit 743d19b

Please sign in to comment.