Fix Debian replacing - with ~

This commit is contained in:
Neshura 2023-12-28 23:03:43 +01:00
parent 98cb5c6837
commit 1ef874b092
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 13 additions and 9 deletions

View file

@ -62,20 +62,21 @@ jobs:
name: Compiling To Linux Target
run: |
cargo build -r
mv target/release/cloudflare-dns-updater cloudflare-dns-updater-linux-amd64
mv target/release/${{ github.event.repository.name }} ${{ github.event.repository.name }}-linux-amd64
-
name: Bundle .deb package
run: |
cargo deb
mv target/debian/cloudflare-dns-updater_${{ github.ref_name }}-1_amd64.deb cloudflare-dns-updater_${{ github.ref_name }}-1_amd64.deb
DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - ~)
mv target/debian/${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb ${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb
-
name: Uploading Build Artifact
uses: actions/upload-artifact@v3
with:
name: release_blobs
path: |
cloudflare-dns-updater-linux-amd64
cloudflare-dns-updater_${{ github.ref_name }}-1_amd64.deb
${{ github.event.repository.name }}-linux-amd64
${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb
if-no-files-found: error
upload-release:
@ -90,19 +91,20 @@ jobs:
name: Upload Binary
run: |
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release_blobs/cloudflare-dns-updater-linux-amd64 \
--upload-file release_blobs/${{ github.event.repository.name }}-linux-amd64 \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/chellaris-rust-api-linux-amd64'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release_blobs/cloudflare-dns-updater-linux-amd64 \
--upload-file release_blobs/${{ github.event.repository.name }}-linux-amd64 \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/chellaris-rust-api-linux-amd64
-
name: Upload Debian Package
run: |
DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - ~)
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release_blobs/cloudflare-dns-updater_${{ github.ref_name }}-1_amd64.deb \
--upload-file release_blobs/${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/bookworm/main/upload'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release_blobs/cloudflare-dns-updater_${{ github.ref_name }}-1_amd64.deb \
--upload-file release_blobs/${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/bookworm/main/upload
-
name: Release New Version
@ -112,4 +114,4 @@ jobs:
url: https://forgejo.neshweb.net
release-dir: release_blobs
token: ${{ secrets.FORGEJO_TOKEN }}
tag: ${{ github.ref_name }}
tag: ${{ github.ref_name }}

View file

@ -3,6 +3,8 @@ authors = ["Neshura"]
name = "cloudflare-dns-updater"
version = "1.1.1-rc.2"
edition = "2021"
description = "Application for automatically updating Cloudflare DNS records"
license = ""
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html