Skip to content

Commit

Permalink
Merge pull request #19 from alandtse/dev
Browse files Browse the repository at this point in the history
ci: update semantic release
  • Loading branch information
alandtse committed Jun 26, 2023
2 parents a47d6dc + 906fc2b commit 6c36b13
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
token: ${{ secrets.GH_TOKEN }}
# - name: Download lokalise translations
# run: |
Expand All @@ -37,16 +39,43 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-semantic-release
# #----------------------------------------------
# # ----- install & configure poetry -----
# #----------------------------------------------
# - name: Install Poetry
# uses: snok/install-poetry@v1
# with:
# virtualenvs-create: true
# virtualenvs-in-project: true
# installer-parallel: true
# #----------------------------------------------
# # load cached venv if cache exists
# #----------------------------------------------
# - name: Load cached venv
# id: cached-poetry-dependencies
# uses: actions/cache@v2
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
# #----------------------------------------------
# # install dependencies if cache does not exist
# #----------------------------------------------
# - name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
# run: poetry install --no-interaction --no-root
# #----------------------------------------------
# # install your root project, if required
# #----------------------------------------------
# - name: Install library
# run: poetry install --no-interaction
- name: Setup Git
run: |
git config --global user.name "semantic-release"
git config --global user.email "semantic-release@GitHub"
# - name: Commit translation files
# continue-on-error: true
# run: |
# git add custom_components/alexa_media/translations/*.json
# git commit -m "docs: update localization" -a
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
Expand Down

0 comments on commit 6c36b13

Please sign in to comment.