Skip to content

Commit

Permalink
Fix pypi action (#135)
Browse files Browse the repository at this point in the history
* use correct pypi upload action version

* update release automation workflows
  • Loading branch information
timmysilv committed Jun 27, 2023
1 parent 2aa27b2 commit 4575696
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 231 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/changelog_template.txt

This file was deleted.

19 changes: 5 additions & 14 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
- name: Run post-release version bump
uses: PennyLaneAI/automation/version_bump_action@main
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_rigetti/_version.py"
--changelog_path "./CHANGELOG.md" --post_release
version_path: "./pennylane_rigetti/_version.py"
changelog_path: "./CHANGELOG.md"
release_status: "post_release"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,12 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
- name: Run pre-release version bump
uses: PennyLaneAI/automation/version_bump_action@main
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_rigetti/_version.py"
--changelog_path "./CHANGELOG.md" --pre_release
version_path: "./pennylane_rigetti/_version.py"
changelog_path: "./CHANGELOG.md"
release_status: "pre_release"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
python -m pytest tests --tb=native
- name: Publish
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
179 changes: 0 additions & 179 deletions .github/workflows/vb_script.py

This file was deleted.

12 changes: 7 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

### New features since last release

### Breaking changes
### Improvements 🛠

### Improvements
### Breaking changes 💔

### Documentation
### Deprecations 👋

### Bug fixes
### Documentation 📝

### Contributors
### Bug fixes 🐛

### Contributors ✍️

This release contains contributions from (in alphabetical order):

Expand Down

0 comments on commit 4575696

Please sign in to comment.