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 6, 2024
1 parent a442fc1 commit 71cf6ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 41 deletions.
17 changes: 10 additions & 7 deletions .github/actions/release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ runs:
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.1.9999' 0.6.1.9999
- name: Create output directory
shell: bash
run: echo "REPO_DIR=$(mktemp -d)" >>"$GITHUB_ENV"
Expand All @@ -22,15 +25,15 @@ runs:
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.1.9999'
shell: bash
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.1.9999/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/0.6.1.9999/'
- name: 'Publish package: latest_tag'
shell: bash
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.1.9999/' \
's3://mpn.metworx.dev/releases/${{ github.event.repository.name }}/latest_tag_test/'
33 changes: 0 additions & 33 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,8 @@ on:
pull_request:

jobs:
check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-20.04
r: 3.6.3
- os: ubuntu-20.04
r: 4.0.5
- os: ubuntu-20.04
r: 4.1.3
- os: ubuntu-latest
r: release
env:
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
upgrade: 'TRUE'
- name: Install pdflatex
shell: bash
run: sudo apt-get install 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
permissions:
id-token: write
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: yspec
Type: Package
Title: Data Specification for Pharmacometrics
Version: 0.6.1.9000
Version: 0.6.1.9999
Authors@R: c(
person("Kyle T", "Baron", "",
"[email protected]",
Expand Down

0 comments on commit 71cf6ac

Please sign in to comment.