Skip to content

Commit

Permalink
Merge pull request #684 from messense/deploy-env
Browse files Browse the repository at this point in the history
Use environments for deployment on GitHub Actions
  • Loading branch information
messense authored Nov 16, 2021
2 parents 963597c + cf8722a commit 5a535cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
publish-docker:
runs-on: ubuntu-latest
environment:
name: Docker Hub
url: https://hub.docker.com/r/konstin2/maturin
steps:
- uses: actions/checkout@v2
- uses: crazy-max/ghaction-docker-meta@v2
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
release-crates-io:
name: Release crates.io
runs-on: ubuntu-latest
environment:
name: crates.io
url: https://crates.io/crates/maturin
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -51,6 +54,9 @@ jobs:
os: windows-latest
name: maturin-aarch64-pc-windows-msvc.zip
runs-on: ${{ matrix.os }}
environment:
name: PyPI
url: https://pypi.org/project/maturin/
steps:
# Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml
- uses: actions/checkout@v2
Expand Down Expand Up @@ -142,6 +148,9 @@ jobs:

release-musl-pypi:
runs-on: ubuntu-latest
environment:
name: PyPI
url: https://pypi.org/project/maturin/
strategy:
matrix:
platform: [
Expand Down Expand Up @@ -182,6 +191,9 @@ jobs:

release-no-rustls-pypi:
runs-on: ubuntu-latest
environment:
name: PyPI
url: https://pypi.org/project/maturin/
strategy:
matrix:
platform:
Expand Down

0 comments on commit 5a535cd

Please sign in to comment.