Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
replace on with workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx authored Nov 5, 2021
1 parent a690438 commit 1484cba
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Release
name: Release (.deb)

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
release:
description: "The New Secman Release"
required: true

env:
RELEASE: ${{ github.event.inputs.release }}

jobs:
build:
Expand All @@ -14,17 +19,17 @@ jobs:

- uses: actions/[email protected]
with:
node-version: 14
node-version: 16

- name: Install Dependencies
run: yarn

- name: Build
run: |
sudo yarn pack:deb
sudo mv ./dist/deb/secman_6.0.2-1_amd64.deb ./dist/deb/secman_v6.0.2_amd64.deb
sudo mv ./dist/deb/secman_${{ env.RELEASE }}-1_amd64.deb ./dist/deb/secman_v${{ env.RELEASE }}_amd64.deb
- name: Upload It
uses: softprops/action-gh-release@v1
with:
files: ./dist/deb/secman_v6.0.2_amd64.deb
files: ./dist/deb/secman_v${{ env.RELEASE }}_amd64.deb

0 comments on commit 1484cba

Please sign in to comment.