Skip to content

Commit

Permalink
Add upload to s3 workflow (#831)
Browse files Browse the repository at this point in the history
* test out workflow

* add missing subdir in github workflows

* test out workflow with tag

* only run workflow when a release is published and use the tag as the path in s3 with the release

* ping action version

* use pinned version and revert back to only on publish

* use correct rollbarjs prefix

* test with prefix again just to make sure

* verified prefix works and change workflow job name to be more descriptive
  • Loading branch information
austenLacy authored Mar 5, 2020
1 parent 80aa38f commit 0983c33
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Upload Rollbar.js release to S3

on:
release:
types: [published]

jobs:
upload-distros-to-s3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/s3-sync-action@v0.5.1
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'dist'
DEST_DIR: rollbarjs/$GITHUB_REF # GITHUB_REF is the tag of the release

0 comments on commit 0983c33

Please sign in to comment.