Fix Debian replacing - with ~
This commit is contained in:
parent
98cb5c6837
commit
1ef874b092
2 changed files with 13 additions and 9 deletions
|
@ -62,20 +62,21 @@ jobs:
|
||||||
name: Compiling To Linux Target
|
name: Compiling To Linux Target
|
||||||
run: |
|
run: |
|
||||||
cargo build -r
|
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
|
name: Bundle .deb package
|
||||||
run: |
|
run: |
|
||||||
cargo deb
|
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
|
name: Uploading Build Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: release_blobs
|
name: release_blobs
|
||||||
path: |
|
path: |
|
||||||
cloudflare-dns-updater-linux-amd64
|
${{ github.event.repository.name }}-linux-amd64
|
||||||
cloudflare-dns-updater_${{ github.ref_name }}-1_amd64.deb
|
${{ github.event.repository.name }}_$DEBIAN_REF-1_amd64.deb
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
upload-release:
|
upload-release:
|
||||||
|
@ -90,19 +91,20 @@ jobs:
|
||||||
name: Upload Binary
|
name: Upload Binary
|
||||||
run: |
|
run: |
|
||||||
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
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'
|
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 }} \
|
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
|
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
|
name: Upload Debian Package
|
||||||
run: |
|
run: |
|
||||||
|
DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - ~)
|
||||||
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
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'
|
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/bookworm/main/upload'
|
||||||
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
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
|
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/bookworm/main/upload
|
||||||
-
|
-
|
||||||
name: Release New Version
|
name: Release New Version
|
||||||
|
|
|
@ -3,6 +3,8 @@ authors = ["Neshura"]
|
||||||
name = "cloudflare-dns-updater"
|
name = "cloudflare-dns-updater"
|
||||||
version = "1.1.1-rc.2"
|
version = "1.1.1-rc.2"
|
||||||
edition = "2021"
|
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
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue