Simplify the package workflow
This commit is contained in:
@@ -29,30 +29,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
|
|
||||||
- name: "Set up python"
|
- name: Setup package variable
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.8
|
|
||||||
|
|
||||||
# Get the local folder name
|
|
||||||
- name: Setup package name
|
|
||||||
id: folder
|
id: folder
|
||||||
run: |
|
run: |
|
||||||
echo "With python, get a folder name"
|
|
||||||
python '.github/package.py'
|
python '.github/package.py'
|
||||||
name=$(python '.github/package.py')
|
echo "::set-output name=folder::$(python '.github/package.py')"
|
||||||
echo "The folder name are ${name}"
|
|
||||||
echo "::set-output name=folder::${name}"
|
|
||||||
archive=$(python '.github/package.py').zip
|
archive=$(python '.github/package.py').zip
|
||||||
echo "The archive name are ${archive}"
|
|
||||||
echo "::set-output name=package::${archive}"
|
echo "::set-output name=package::${archive}"
|
||||||
|
|
||||||
# Update the bl info version, update the init file and push if needed
|
# Update the bl info version, update the init file and push if needed
|
||||||
- name: Change version number in the bl info addon data
|
- name: Change version number in the bl info addon data
|
||||||
run: |
|
run: python '.github/version.py' --tag=${{ inputs.num_version }} --name=${{ steps.folder.outputs.folder }}
|
||||||
echo "The folder name are ${{ steps.folder.outputs.folder }}"
|
|
||||||
echo "The tag used are ${{ inputs.num_version }}"
|
|
||||||
python '.github/version.py' --tag=${{ inputs.num_version }} --name=${{ steps.folder.outputs.folder }}
|
|
||||||
|
|
||||||
- name: Commit the previous update
|
- name: Commit the previous update
|
||||||
uses: actions-js/push@v1.3
|
uses: actions-js/push@v1.3
|
||||||
|
|||||||
Reference in New Issue
Block a user