Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rcervinoucm authored Jul 16, 2024
1 parent 6d2bed3 commit c8b344d
Showing 1 changed file with 5 additions and 54 deletions.
59 changes: 5 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release CD

on:
release:
types: [published]
on: [push]
#release:
# types: [published]

jobs:
pypi-publish:
Expand Down Expand Up @@ -32,34 +32,9 @@ jobs:
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Get version
run: |
output=$(python ctlearn/versionScript.py)
echo "version=$output" >> $GITHUB_OUTPUT
id: step1

- name: Write
uses: 1arp/[email protected]
with:
path: '.'
isAbsolutePath: true
file: '.github/versionBackup.txt'
content: |
${{ steps.step1.outputs.version }}
- name: Push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "rcervinoucm"
git status
git add .
git commit -m "version update" --allow-empty
git push -u origin master
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

Expand Down Expand Up @@ -91,31 +66,7 @@ jobs:
run: |
conda env update --file environment.yml --name base
sudo apt-get install python3-numpy
- name: Get version
run: |
output=$(python ctlearn/versionScript.py)
echo "version=$output" >> $GITHUB_OUTPUT
id: step1

- name: Write
uses: 1arp/[email protected]
with:
path: '.'
isAbsolutePath: true
file: '.github/versionBackup.txt'
content: |
${{ steps.step1.outputs.version }}
- name: Push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "rcervinoucm"
git status
git add .
git commit -m "version update" --allow-empty
git push -u origin master
- name: publish-to-conda
uses: fcakyon/[email protected]
with:
Expand Down

0 comments on commit c8b344d

Please sign in to comment.