Skip to content

Commit

Permalink
Merge pull request #334 from concord-consortium/fix-release-workflow
Browse files Browse the repository at this point in the history
chore: Add release symlink workflow
  • Loading branch information
pjanik authored Jul 5, 2023
2 parents 6bf1738 + 714975d commit 4e48b8e
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 472 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ jobs:
# Parameters to GHActions have to be strings, so a regular yaml array cannot
# be used. Instead the `|` turns the following lines into a string
topBranches: |
["master"]
["master"]
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release New Version

on:
workflow_dispatch:
inputs:
version:
description: The git tag to release
required: true

env:
BUCKET: models-resources
PREFIX: ${{ github.event.repository.name }}
SRC_FILE: index-top.html
jobs:
release:
runs-on: ubuntu-latest
steps:
- run: >-
aws s3 cp
s3://${{ env.BUCKET }}/${{ env.PREFIX }}/version/${{ github.event.inputs.version }}/${{ env.SRC_FILE }}
s3://${{ env.BUCKET }}/${{ env.PREFIX }}/index.html
env:
AWS_ACCESS_KEY_ID: ${{ secrets.V3_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.V3_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
Loading

0 comments on commit 4e48b8e

Please sign in to comment.