Skip to content

Commit

Permalink
remove uploading from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
olynch committed May 31, 2023
1 parent dde7779 commit 01b51a6
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
mill "$app.checkFormat"
done
upload:
build-apps:
runs-on: ubuntu-latest
steps:
- name: Check out repository
Expand All @@ -57,46 +57,12 @@ jobs:
- name: Set up Mill
uses: jodersky/setup-mill@master
with:
mill-version: '0.10.5'

- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
mill-version: '0.10.11'

- name: Build compiled javascript
run: |
cd scala
for app in $(mill resolve apps._)
do
mill $app.fullLinkJS
done
- name: Get shorthash
id: shorthash
run: |
hash=$(git rev-parse --short "$GITHUB_SHA")
echo "::set-output name=sh::$hash"
- name: Copy files to bucket
run: |
hash=${{ steps.shorthash.outputs.sh }}
cd scala
mkdir build
for app in $(mill resolve apps._)
do
appname=$(echo $app | sed 's/.*\.//')
mkdir -p build/$hash/$appname
cp out/apps/$appname/fullLinkJS.dest/* build/$hash/$appname/
mill $app.compile
done
aws s3 sync build/ s3://semagrams
- name: Create link to files in commit
uses: peter-evans/commit-comment@v2
with:
body: |
Find compiled javascript for \$APP at
https://semagrams-builds.s3.amazonaws.com/${{ steps.shorthash.outputs.sh }}/\$APP/main.js

0 comments on commit 01b51a6

Please sign in to comment.