Adds support for custom context path on Jira Server #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: Package | |
on: | |
pull_request: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} # checkout the correct branch name | |
fetch-depth: 0 # fetch the whole repo history | |
- name: Determine version | |
if: ${{github.event_name == 'pull_request'}} | |
id: version | |
uses: codacy/git-version@2.8.0 | |
# This can switch back to https://github.com/marketplace/actions/set-json-field | |
# when https://github.com/jossef/action-set-json-field/pull/13 is merged. | |
- name: Write version | |
uses: Tritolium/action-set-json-field@bd088679104b89fe94a2c90ae1ca21577af44bdd | |
with: | |
file: src/streamdeck.json | |
field: version | |
value: ${{github.event.release.name || steps.version.outputs.version}} | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Package | |
run: npm run package | |
- name: Save artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: com.mediabounds.streamdeck.jira-${{github.event.release.name || steps.version.outputs.version}}.streamDeckPlugin | |
path: release/com.mediabounds.streamdeck.jira.streamDeckPlugin | |
if-no-files-found: error | |
- name: Publish | |
if: ${{github.event_name == 'release'}} | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: release/com.mediabounds.streamdeck.jira.streamDeckPlugin |