Create Plugin Release #3
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 Plugin Release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Tag to build" | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Prepare files for release | |
run: | | |
mkdir -p release | |
cp main.js styles.css manifest.json release/ | |
- name: Create GitHub Release | |
uses: ncipollo/release-action@v1.12.0 | |
with: | |
artifacts: "release/main.js,release/styles.css,release/manifest.json" | |
token: ${{ secrets.PAT }} | |
tag: ${{ github.event.inputs.tag }} |