Create Release #27
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: Create Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: version string (eg. 6.1) | |
required: true | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: python -m pip install simplejson | |
- name: Run release/new_version.py | |
run: python ./release/new_version.py ${{ github.event.inputs.version }} | |
- name: Commit changes to git | |
uses: EndBug/[email protected] | |
with: | |
message: Bump Version to v${{ github.event.inputs.version }} | |
- name: Push new version with tag | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
branch: master | |
tags: ${{ github.event.inputs.version }} | |
- name: Create ankiaddon file | |
run: cd src/addon ; zip -r ../../efdrc_v${{ github.event.inputs.version }}.ankiaddon * ; cd ../../ | |
- name: Create github release and upload ankiaddon file | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ github.token }} | |
file: "efdrc_v${{ github.event.inputs.version }}.ankiaddon" | |
tag: ${{ github.event.inputs.version }} | |
release_name: EFDRC v${{ github.event.inputs.version }} |