Skip to content

Commit 70ec094

Browse files
committed
Added new release pipeline
1 parent e51ce6b commit 70ec094

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/dataset_release.yaml

+11-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Create dataset release
22

33
on:
44
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*.*.*"
58

69
jobs:
710
run-python:
@@ -20,14 +23,15 @@ jobs:
2023
- name: Run conversion script
2124
run: |
2225
sh scripts/convert_manifolds.sh
23-
24-
- name: Create release
25-
uses: "marvinpinto/action-automatic-releases@latest"
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v2
29+
if: startsWith(github.ref, 'refs/tags/')
2630
with:
27-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
28-
automatic_release_tag: "latest"
29-
title: "Manifolds Dataset"
30-
prerelease: false
31+
draft: true
32+
generate_release_notes: true
33+
make_latest: true
3134
files: |
3235
2_manifolds.json.gz
3336
3_manifolds.json.gz
37+

.github/workflows/pypi.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
publish-to-pypi:
3232
name: >-
3333
Publish Python 🐍 distribution 📦 to PyPI
34-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
34+
if: startsWith(github.ref, 'refs/tags/')
3535
needs:
3636
- build
3737
runs-on: ubuntu-latest
3838
environment:
3939
name: pypi
40-
url: https://pypi.org/p/mantra-dataset # Replace <package-name> with your PyPI project name
40+
url: https://pypi.org/p/mantra-dataset
4141
permissions:
42-
id-token: write # IMPORTANT: mandatory for trusted publishing
42+
id-token: write
4343

4444
steps:
4545
- name: Download all the dists

0 commit comments

Comments
 (0)