Skip to content

Commit

Permalink
fix: yaml syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo4diani committed Aug 13, 2023
1 parent f656b30 commit a3c2ff0
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ branding:
icon: 'box'
color: 'purple'
inputs:
github-token: 'GitHub Token'
github-token:
description: 'GitHub Token'
required: true
default: 'token'
pypi-token: 'PyPI Token'
pypi-token:
description: 'PyPI Token'
required: true
default: 'token'
Expand Down Expand Up @@ -36,47 +36,47 @@ runs:
using: "composite"

steps:
- uses: actions/setup-python@v3
with:
python-version: ${{python-version}}
- uses: actions/setup-python@v3
with:
python-version: ${{python-version}}

- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check release status
id: release-status
shell: bash
env:
GH_TOKEN: ${{ github-token }}
run: |
pip install python-semantic-release
if semantic-release --noop --strict version
then
echo "Releasing new version."
else
echo "Skipping release steps."
fi
- name: Check release status
id: release-status
shell: bash
env:
GH_TOKEN: ${{ github-token }}
run: |
pip install python-semantic-release
if semantic-release --noop --strict version
then
echo "Releasing new version."
else
echo "Skipping release steps."
fi
- if: steps.release-status.outputs.released == 'true'
name: Release to GitHub
id: github-release
shell: bash
env:
GH_TOKEN: ${{ github-token }}
run: |
semantic-release version
git fetch --tags
for file in ./dist/**
do gh release upload "${{steps.release-status.outputs.tag}}" $file
done
- if: steps.release-status.outputs.released == 'true'
name: Release to GitHub
id: github-release
shell: bash
env:
GH_TOKEN: ${{ github-token }}
run: |
semantic-release version
git fetch --tags
for file in ./dist/**
do gh release upload "${{steps.release-status.outputs.tag}}" $file
done
- if: steps.release-status.outputs.released == 'true'
name: Release to PyPI
id: pypi-release
shell: bash
env:
PYPI_TOKEN: ${{ pypi-token }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish
- if: steps.release-status.outputs.released == 'true'
name: Release to PyPI
id: pypi-release
shell: bash
env:
PYPI_TOKEN: ${{ pypi-token }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish

0 comments on commit a3c2ff0

Please sign in to comment.