feat: добавлена команда run_script - возможность выполнить внешний py… #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-1 | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
- "v[0-9]+.[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
changelog: | |
name: Generate changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Generate a changelog | |
uses: orhun/git-cliff-action@v2 | |
id: git-cliff | |
with: | |
config: cliff.toml | |
args: -vv --latest --strip header | |
env: | |
OUTPUT: CHANGELOG.md | |
- name: Print the changelog | |
run: cat "${{ steps.git-cliff.outputs.changelog }}" | |
- name: Upload CHANGELOG.md | |
uses: actions/upload-artifact@v3 | |
with: | |
name: changelog | |
path: "${{ steps.git-cliff.outputs.changelog }}" | |
create_release_bin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Update version | |
uses: brettdorrans/write-version-to-file@master | |
with: | |
filename: 'src/ManageAppProjects/manifest.json' | |
placeholder: '${VERSION}' | |
- name: Create zip | |
uses: papeloto/action-zip@v1 | |
with: | |
files: src/ManageAppProjects readme.pdf readme.md update_config_before_install.yml update_config_after_install.yml script_example.py | |
dest: ManageAppProjects.zip | |
recursive: true | |
- name: Upload release.zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: release_bin | |
path: ManageAppProjects.zip | |
publish: | |
runs-on: ubuntu-latest | |
needs: [changelog, create_release_bin] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download CHANGELOG.md | |
uses: actions/download-artifact@v3 | |
with: | |
name: changelog | |
- name: Download release.zip | |
uses: actions/download-artifact@v3 | |
with: | |
name: release_bin | |
- name: Publish | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: true | |
files: | | |
ManageAppProjects.zip | |
body_path: CHANGELOG.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |