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 May 3, 2024
1 parent 80647b9 commit 8138be5
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 @@ -46,7 +46,6 @@ jobs:
run: sudo apt-get install dvipng texlive-latex-base texlive-fonts-extra
- uses: r-lib/actions/check-r-package@v2
release:
if: github.ref_type == 'tag'
name: Upload release
needs: check
runs-on: ubuntu-latest
Expand All @@ -69,6 +68,9 @@ jobs:
run: |
git config --global user.name CI
git config --global user.email ci@metrumrg
- name: Tag
shell: bash
run: git tag -am 'release 0.6.0.9999' 0.6.0.9999
- name: Create output directory
shell: bash
run: echo "REPO_DIR=$(mktemp -d)" >>$GITHUB_ENV
Expand All @@ -80,13 +82,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: 0.6.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 }}/0.6.0.9999/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/0.6.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 }}/0.6.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 @@
Package: pmtables
Type: Package
Title: Tables for Pharmacometrics
Version: 0.6.0.9000
Version: 0.6.0.9999
Authors@R:
c(
person(given = "Kyle",
Expand Down

0 comments on commit 8138be5

Please sign in to comment.