Skip to content

Commit

Permalink
[drop] test s3 creds
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleam committed Apr 29, 2024
1 parent 168bc02 commit 3aa36d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
shell: Rscript {0}
run: pkgdown::check_pkgdown()
release:
if: github.ref_type == 'tag'
name: Upload release
needs: check
runs-on: ubuntu-latest
Expand All @@ -104,6 +103,9 @@ jobs:
run: |
git config --global user.email CI
git config --global user.name ci@metrumrg
- name: Tag
shell: bash
run: git tag -am 'release 1.10.0.9999' 1.10.0.9999
- name: Create output directory
shell: bash
run: echo "REPO_DIR=$(mktemp -d)" >>$GITHUB_ENV
Expand All @@ -115,13 +117,13 @@ jobs:
with:
role-to-assume: arn:aws:iam::906087756158:role/github-actions-mpn-s3-publish
aws-region: us-east-1
- name: 'Publish package: ${{ github.ref_name }}'
- name: 'Publish package: 1.10.0.9999'
run: |
aws s3 sync \
'${{ env.REPO_DIR }}/${{ github.ref_name }}/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/${{ github.ref_name }}/'
aws s3 sync --dryrun \
'${{ env.REPO_DIR }}/1.10.0.9999/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/1.10.0.9999/'
- name: 'Publish package: latest_tag'
run: |
aws s3 sync \
'${{ env.REPO_DIR }}/${{ github.ref_name }}/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/latest_tag/'
aws s3 sync --dryrun \
'${{ env.REPO_DIR }}/1.10.0.9999/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/latest_tag_test/'
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: bbr
Title: R package for bbi
Version: 1.10.0
Version: 1.10.0.9999
Authors@R:
c(person(given = "Seth",
family = "Green",
Expand Down

0 comments on commit 3aa36d8

Please sign in to comment.