Skip to content

Commit

Permalink
Update linux_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk authored Nov 19, 2024
1 parent 416660e commit 55151ed
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/linux_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
name: デプロイ(linux)
on:
workflow_dispatch:
release:
types: [published]
inputs:
job_to_run:
description: "Select which job to run"
required: true
type: choice
options:
- build-snap
- build-debs
- all

env:
APP_NAME: 'miria'
Expand All @@ -15,6 +22,7 @@ permissions:
jobs:
build-snap:
name: ビルド(Snap)
if: ${{ github.event.inputs.job_to_run == 'build-snap' || github.event.inputs.job_to_run == 'all' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -59,6 +67,7 @@ jobs:

build-debs:
name: ビルド(Deb)
if: ${{ github.event.inputs.job_to_run == 'build-debs' || github.event.inputs.job_to_run == 'all' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -137,4 +146,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload v$VERSION --clobber ./miria_${{ env.VERSION }}_amd64.deb
gh release upload v$VERSION --clobber ./miria_${{ env.VERSION }}_amd64.deb

0 comments on commit 55151ed

Please sign in to comment.