File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release access-cryosphere-data-pool
2+
3+ # Trigger release on push to tags starting with 'v'
4+ on :
5+ push :
6+ tags :
7+ - ' v*'
8+
9+ # Define jobs
10+ jobs :
11+
12+ # Job 1: Check dependencies and installation
13+ check_dependencies :
14+ uses : access-nri/pyISSM/.github/workflows/check-dependencies.yml@lb/231225_workflows
15+
16+ # Job 2: Publish Python package to PyPI and Conda
17+ publish_python_package :
18+ needs : check_dependencies
19+ uses : access-nri/actions/.github/workflows/publish-python-package.yml@main
20+ with :
21+ pypi-package : true
22+ conda-package : true
23+ secrets : inherit
24+ permissions :
25+ actions : write
26+
27+ # Job 3: Create GitHub Release
28+ create-github-release :
29+ name : Create GitHub Release
30+ runs-on : ubuntu-latest
31+ needs : publish_python_package
32+ permissions :
33+ contents : write
34+
35+ steps :
36+ - name : Download artifact
37+ uses : actions/download-artifact@v5
38+ with :
39+ name : ${{ needs.publish_python_package.outputs.artifact-name }}
40+ path : dist
41+
42+ - name : Create Release
43+ uses : softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3
44+ with :
45+ tag_name : ${{ github.ref_name }}
46+ name : pyISSM ${{ github.ref_name }}
47+ generate_release_notes : true
48+ fail_on_unmatched_files : true
49+ files : |
50+ dist/*
You can’t perform that action at this time.
0 commit comments