This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
updated version number #22
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: Publish scriptor | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Build usepython | |
working-directory: ./src/usepython | |
run: | | |
npm install | |
npm run build | |
- name: install node modules | |
run: npm install | |
- name: zipping scriptor python module | |
working-directory: ./src/assets | |
run: python3 make.py | |
- name: build scriptor | |
run: npm run build | |
- name: zipping scriptor build | |
run: python3 make.py | |
- name: Get version from tag | |
id: tag_name | |
run: | | |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} | |
- name: Upload Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "source.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Done | |
run: echo 'Done' |