Deploy Release #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Tag of release with .deb file asset attached it, for example 0.31.5' | |
required: true | |
jobs: | |
apt_deploy: | |
runs-on: ubuntu-latest | |
name: Deploy Release | |
env: | |
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | |
GPG_SECRET_KEY_BASE64: ${{ secrets.GPG_SECRET_KEY_BASE64 }} | |
RELEASE_TAG: ${{ github.event.inputs.tag }} | |
steps: | |
- | |
name: Checkout repo | |
uses: actions/checkout@v3 | |
- | |
name: Checkout gh-pages branch | |
uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
path: apt-repo | |
- | |
name: Download .deb file | |
uses: robinraju/[email protected] | |
with: | |
repository: dtcooper/raspotify | |
tag: ${{ github.event.inputs.tag }} | |
fileName: "*" | |
- | |
name: Install reprepro | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y reprepro | |
- | |
name: Create and deploy repo | |
run: ./deploy-apt-repo.sh |