mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
added workflow_dispatch
to allow the bot to create the APT repository itself
This commit is contained in:
parent
2a17de37f1
commit
54d03b8065
27
.github/workflows/apt.yml
vendored
27
.github/workflows/apt.yml
vendored
@ -1,6 +1,26 @@
|
|||||||
name: Hyperion APT Build
|
name: Hyperion APT Build
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
head_sha:
|
||||||
|
type: string
|
||||||
|
description: The branch, tag or SHA to checkout
|
||||||
|
required: true
|
||||||
|
secrets:
|
||||||
|
APT_GPG:
|
||||||
|
required: true
|
||||||
|
APT_USER:
|
||||||
|
required: true
|
||||||
|
APT_PASSWORD:
|
||||||
|
required: true
|
||||||
|
APT_DRAFT:
|
||||||
|
required: true
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
head_sha:
|
||||||
|
type: string
|
||||||
|
description: The branch, tag or SHA to checkout
|
||||||
|
required: true
|
||||||
secrets:
|
secrets:
|
||||||
APT_GPG:
|
APT_GPG:
|
||||||
required: true
|
required: true
|
||||||
@ -36,6 +56,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.inputs.head_sha || github.event.client_payload.head_sha }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Generate environment variables
|
- name: Generate environment variables
|
||||||
@ -73,7 +94,7 @@ jobs:
|
|||||||
cp ../hyperion_*.deb /deploy"
|
cp ../hyperion_*.deb /deploy"
|
||||||
|
|
||||||
- name: Upload package artifact
|
- name: Upload package artifact
|
||||||
if: startsWith(github.event.ref, 'refs/tags')
|
if: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'workflow_dispatch' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: deploy
|
path: deploy
|
||||||
@ -81,12 +102,14 @@ jobs:
|
|||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish APT packages
|
name: Publish APT packages
|
||||||
if: startsWith(github.event.ref, 'refs/tags')
|
if: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'workflow_dispatch' }}
|
||||||
needs: [setup, build]
|
needs: [setup, build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.head_sha || github.event.client_payload.head_sha }}
|
||||||
|
|
||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
uses: crazy-max/ghaction-import-gpg@v5.2.0
|
uses: crazy-max/ghaction-import-gpg@v5.2.0
|
||||||
|
8
.github/workflows/push-master.yml
vendored
8
.github/workflows/push-master.yml
vendored
@ -195,8 +195,6 @@ jobs:
|
|||||||
if: startsWith(github.event.ref, 'refs/tags')
|
if: startsWith(github.event.ref, 'refs/tags')
|
||||||
needs: [Linux, macOS, windows]
|
needs: [Linux, macOS, windows]
|
||||||
uses: ./.github/workflows/apt.yml
|
uses: ./.github/workflows/apt.yml
|
||||||
secrets:
|
secrets: inherit
|
||||||
APT_GPG: ${{ secrets.APT_GPG }}
|
with:
|
||||||
APT_USER: ${{ secrets.APT_USER }}
|
head_sha: master
|
||||||
APT_PASSWORD: ${{ secrets.APT_PASSWORD }}
|
|
||||||
APT_DRAFT: ${{ secrets.APT_DRAFT }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user