Skip to content

Commit

Permalink
Merge branch 'main' into add-email-in-webinterface-and-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocardpaulet authored Jan 25, 2024
2 parents 832b46b + 057cda0 commit d3168e7
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/automated_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Automated Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Configure Git
run: |
git config --local user.name "Your Name"
git config --local user.email "your-email@example.com"
- name: Automatic Tagging
id: tag_version
uses: "anothrNick/github-tag-action@1.36.0"
with:
default_bump: patch
release_branches: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
if: steps.tag_version.outputs.new_tag != ''
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: 'New release'
draft: false
prerelease: false
26 changes: 26 additions & 0 deletions .github/workflows/publish_pypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Flit
run: python -m pip install flit

- name: Publish to PyPI
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: flit publish --repository pypi

0 comments on commit d3168e7

Please sign in to comment.