insomnia/.github/workflows/publish.yml

32 lines
893 B
YAML
Raw Normal View History

name: Publish release
on:
workflow_dispatch:
inputs:
tag:
description: Tag to publish
required: true
jobs:
apt_repository:
name: Publish to apt repository
runs-on: ubuntu-latest
steps:
- name: Download .deb from GitHub release
uses: MrOctopus/download-asset-action@5b7c3c9bcb75047bb7aaad45718403b413cc0290
id: download
with:
tag: "${{ github.event.inputs.tag }}"
asset: ".deb"
- name: Upload .deb to Pulp
uses: docker://kong/release-script:1.7.0
env:
PULP_USERNAME: ${{ secrets.PULP_USERNAME }}
PULP_PASSWORD: ${{ secrets.PULP_PASSWORD }}
PULP_HOST: ${{ secrets.PULP_HOST }}
with:
entrypoint: python3
args: '/usr/src/code/main.py --file ${{ steps.download.outputs.name }} --dist-name ubuntu --dist-version focal --package-type insomnia --publish'