Skip to content

Commit

Permalink
moved everything to root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Aug 5, 2023
1 parent f2fdb5a commit dc67191
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- main
tags:
- "v*.*.*"
- "*.*.*"

permissions:
contents: write
Expand All @@ -36,11 +36,11 @@ jobs:
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
if [ -f my_plugin/requirements.txt ]; then pip install -r my_plugin/requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Get version
run: |
echo 'PLUGIN_JSON<<EOF' >> $GITHUB_ENV
cat ./my_plugin/plugin.json >> $GITHUB_ENV
cat ./plugin.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Publish tag
if: env.TAG_EXISTS == false
Expand All @@ -55,7 +55,7 @@ jobs:
type: 'zip'
filename: 'my_plugin.zip'
directory: '.'
path: './my_plugin'
path: '.'
- name: Upload Release
uses: ncipollo/release-action@v1.12.0
with:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@

snake_name = ("_").join(repo_name.lower().split(" "))

os.rename("my_plugin/my_plugin.py", f"my_plugin/{snake_name}.py")
os.rename("my_plugin", snake_name)
os.rename("my_plugin.py", snake_name)

for file in pathlib.Path(".").glob('**/*.*'):
filename = str(file)
Expand Down

0 comments on commit dc67191

Please sign in to comment.