Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Oct 26, 2023
1 parent ae2bc25 commit a06d075
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Release
run-name: Release v${{ github.event.inputs.version }}

on:
workflow_dispatch:
inputs:
version:
description: Version
required: true

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Enable corepack
run: corepack enable

- name: Install dependencies
run: yarn install

- name: Run package
run: yarn package

- uses: svenstaro/upload-release-action@v2
if: ${{ !env.ACT }}
with:
overwrite: true
file: build/flexi-dock-v${{ github.event.inputs.version }}.zip
tag: v${{ github.event.inputs.version }}
body: Version ${{ github.event.inputs.version }}

0 comments on commit a06d075

Please sign in to comment.