Skip to content

Commit 9e0f45c

Browse files
committed
ci: download previously built binary
1 parent 817976c commit 9e0f45c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ jobs:
251251
push-to-codecommit:
252252
concurrency: push-to-codecommit
253253
name: Push to CodeCommit
254-
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'demosdemon/git-remote-codecommit'
255254
needs: [finalize-coveralls-run, build-docs, build-binaries]
256255
runs-on: ubuntu-latest
257256
env:
@@ -263,25 +262,27 @@ jobs:
263262
with:
264263
fetch-depth: 0 # need the history in order to push to CodeCommit
265264

266-
- name: configure aws credentials
265+
- name: Configure AWS credentials
266+
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'demosdemon/git-remote-codecommit'
267267
uses: aws-actions/configure-aws-credentials@v4.0.2
268268
with:
269269
role-to-assume: arn:aws:iam::339712996426:role/github-git-remote-codecommit
270270
aws-region: ${{ env.AWS_REGION }}
271271

272-
- name: Install Rust
273-
uses: actions-rust-lang/setup-rust-toolchain@v1
274-
275-
- name: Fetch cargo dependencies
276-
run: cargo v --locked
272+
- name: Download git-remote-codecommit
273+
uses: actions/download-artifact@v4
274+
with:
275+
name: git-remote-codecommit-ubuntu-latest
276+
path: target/release-lto
277277

278-
- name: Install git-remote-codecommit
279-
run: cargo v-install --frozen --profile=release-lto --path=crates/git-remote-codecommit
278+
- name: Add git-remote-codecommit to PATH
279+
run: echo "$PWD/target/release-lto" >> $GITHUB_PATH
280280

281281
- name: Check version
282282
run: git-remote-codecommit --version
283283

284284
- name: Push to CodeCommit
285+
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'demosdemon/git-remote-codecommit'
285286
run: |
286287
git remote add aws codecommit://git-remote-codecommit
287288
git push aws HEAD:refs/heads/main

0 commit comments

Comments
 (0)