Update release_with_new_db.yml #12
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 IAGL new db | |
on: | |
workflow_dispatch: | |
inputs: | |
publish: | |
description: 'Manually Release' | |
required: true | |
default: Yes | |
type: choice | |
options: | |
- Yes | |
- No | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout Code | |
id: checkout | |
uses: actions/checkout@master | |
# Step 2: Extract the version tag from addon.xml | |
- name: Get Version from addon.xml | |
id: get_version | |
uses: mavrosxristoforos/[email protected] | |
with: | |
xml-file: 'addon.xml' | |
xpath: '/addon/@version' | |
# Step 3: Create a zip file of the latest release | |
- name: Generate Release Archive | |
id: create_zip | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
path: 'plugin.program.iagl' | |
command: 'mkdir plugin.program.iagl; mv * plugin.program.iagl' | |
filename: 'plugin.program.iagl-${{ steps.get_version.outputs.info }}.zip' | |
exclusions: '*.git* /*node_modules/* .editorconfig *.xlsx *iagl_backup.db.zip' | |
# Step 4: Upload the release | |
- name: Upload Release | |
id: upload_release | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: 'plugin.program.iagl-${{ steps.get_version.outputs.info }}.zip' | |
name: 'plugin.program.iagl-${{ steps.get_version.outputs.info }}' | |
token: ${{ secrets.GITHUB_TOKEN }} |