Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
polsala committed Sep 1, 2023
1 parent 7c0fd5a commit b550fa9
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Sastre_Release

on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+'
on: push
#on:
# push:
# tags:
# - 'v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'
# - 'v[0-9]+\.[0-9]+\.[0-9]+'

jobs:
build:
Expand All @@ -22,29 +22,29 @@ jobs:
printf '1\n' | sudo update-alternatives --config python
cd /usr/bin
sudo ln -s /usr/bin/pip2 ./pip
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: false
# - name: Get tag
# id: tag
# uses: dawidd6/action-get-tag@v1
# with:
# strip_v: false
- name: Generate binary
run: |
pip install pyinstaller==3.3.1
pip install -e .
pyinstaller --onefile -n sastre apply_pr/cli.py
- name: Creating a realease/pre-release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/sastre
tag_name: ${{steps.tag.outputs.tag}}
draft: false
prerelease: ${{ contains(github.ref, '-rc') }}
generate_release_notes: true
- name: Publish a Python distribution to PyPI
if: ${{ contains(github.ref, '-rc') }} == false
uses: conchylicultor/pypi-build-publish@v1
with:
pypi-token: ${{ secrets.PYPI_TOKEN }}
# - name: Creating a realease/pre-release
# id: create_release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# files: dist/sastre
# tag_name: ${{steps.tag.outputs.tag}}
# draft: false
# prerelease: ${{ contains(github.ref, '-rc') }}
# generate_release_notes: true
# - name: Publish a Python distribution to PyPI
# if: ${{ contains(github.ref, '-rc') }} == false
# uses: conchylicultor/pypi-build-publish@v1
# with:
# pypi-token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit b550fa9

Please sign in to comment.