mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 11:35:25 +00:00
chore(cd): fix cd configuration for deb packages
This commit is contained in:
parent
e9dde70ecf
commit
dcf9f6a621
29
.github/workflows/cd.yml
vendored
29
.github/workflows/cd.yml
vendored
@ -7,35 +7,11 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- '[v]?[0-9]+.[0-9]+.[0-9]+'
|
- '[v]?[0-9]+.[0-9]+.[0-9]+'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
tags:
|
|
||||||
description: 'Tags to deploy'
|
|
||||||
required: true
|
|
||||||
default: 'v0.0.0'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
|
||||||
name: create-release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Get the release version from the tag
|
|
||||||
if: env.VERSION == ''
|
|
||||||
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
|
|
||||||
- name: Show the version
|
|
||||||
run: |
|
|
||||||
echo "version is: $VERSION"
|
|
||||||
- name: Create GitHub release
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: gh release create $VERSION --draft --verify-tag --title $VERSION
|
|
||||||
outputs:
|
|
||||||
version: ${{ env.VERSION }}
|
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
|
|
||||||
name: Publishing for ${{ matrix.os }}
|
name: Publishing for ${{ matrix.os }}
|
||||||
needs: ['create-release']
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@ -164,7 +140,6 @@ jobs:
|
|||||||
|
|
||||||
publish-release-deb:
|
publish-release-deb:
|
||||||
name: publish-release-deb
|
name: publish-release-deb
|
||||||
needs: ['create-release']
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TARGET: x86_64-unknown-linux-musl
|
TARGET: x86_64-unknown-linux-musl
|
||||||
@ -223,7 +198,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cargo deb --profile deb --target ${{ env.TARGET }}
|
cargo deb --profile deb --target ${{ env.TARGET }}
|
||||||
version="${{ needs.create-release.outputs.version }}"
|
version="${{ github.ref_name }}"
|
||||||
echo "DEB_DIR=target/${{ env.TARGET }}/debian" >> $GITHUB_ENV
|
echo "DEB_DIR=target/${{ env.TARGET }}/debian" >> $GITHUB_ENV
|
||||||
echo "DEB_NAME=television_$version-1_amd64.deb" >> $GITHUB_ENV
|
echo "DEB_NAME=television_$version-1_amd64.deb" >> $GITHUB_ENV
|
||||||
|
|
||||||
@ -241,5 +216,5 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd "$DEB_DIR"
|
cd "$DEB_DIR"
|
||||||
version="${{ needs.create-release.outputs.version }}"
|
version="${{ github.ref_name }}"
|
||||||
gh release upload "$version" "$DEB_NAME" "$SUM"
|
gh release upload "$version" "$DEB_NAME" "$SUM"
|
||||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2963,7 +2963,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "television"
|
name = "television"
|
||||||
version = "0.4.21"
|
version = "0.4.22"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"better-panic",
|
"better-panic",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "television"
|
name = "television"
|
||||||
version = "0.4.21"
|
version = "0.4.22"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "The revolution will be televised."
|
description = "The revolution will be televised."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user