Skip to content

Commit

Permalink
ci: add flag for building with self-update feature for nightly and CD
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsan committed Sep 10, 2024
1 parent ab13071 commit e762270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
sign-release: true
hash-release: true
use-project-version: true
extra-cargo-build-args: "--features self-update"

publish-nightly:
if: ${{ github.repository_owner == 'rustic-rs' && github.ref == 'refs/heads/main' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
tags:
# Run on stable releases
- 'v*.*.*'
- "v*.*.*"
# Run on release candidates
- 'v*.*.*-rc*'
- "v*.*.*-rc*"

defaults:
run:
Expand Down Expand Up @@ -96,7 +96,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:

fetch-depth: 0 # fetch all history so that git describe works
- name: Create binary artifact
uses: rustic-rs/create-binary-artifact-action@main # dev
Expand All @@ -118,6 +117,7 @@ jobs:
hash-release: true
use-project-version: true
use-tag-version: true # IMPORTANT: this is being used to make sure the tag that is built is in the archive filename, so automation can download the correct version
extra-cargo-build-args: "--features self-update"

create-release:
name: Creating release with artifacts
Expand Down

0 comments on commit e762270

Please sign in to comment.