Skip to content

Commit

Permalink
feat: adds force build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
migtarx committed Nov 26, 2023
1 parent 94a06a4 commit bcd34c6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/force-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Force Build
run-name: Force Build in ${{ inputs.build_enviroment }}
on:
workflow_dispatch:
inputs:
build_enviroment:
type: choice
default: PRODUCTION
description: Build enviroment
options:
- PRODUCTION

jobs:
deploy:
name: Force Build in ${{ github.event.inputs.build_enviroment }}
runs-on: [self-hosted, linux, x64, "${{ github.event.inputs.build_enviroment }}"]
steps:
- name: Build hugo
run: hugo
- name: ${{ github.event.inputs.build_enviroment }} app restart
run: pm2 restart BLOG --log-date-format 'DD-MM-YYYY HH:mm:ss'

0 comments on commit bcd34c6

Please sign in to comment.