Skip to content

Commit

Permalink
Merge pull request #806 from dopplershift/update-release-workflow
Browse files Browse the repository at this point in the history
Update release workflow
  • Loading branch information
dopplershift authored Nov 1, 2024
2 parents dc292fb + 88154da commit 413c52c
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,28 @@ on:
- published

jobs:
packages:
name: Release Packages
build:
name: Build Release Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 150

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
id: setup
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools setuptools_scm wheel
python -m pip install --upgrade build setuptools setuptools_scm wheel
- name: Build packages
run: python setup.py sdist bdist_wheel
run: python -m build

- name: Save built packages as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }}
path: dist/
Expand All @@ -43,13 +39,13 @@ jobs:
needs: build
environment:
name: PyPI
url: https://pypi.org/project/MetPy/
url: https://pypi.org/project/siphon/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
runs-on: ubuntu-latest
steps:
- name: Download packages
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Consolidate packages for upload
run: |
Expand Down

0 comments on commit 413c52c

Please sign in to comment.