tweaks #3386
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compile | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile bundle | |
uses: docker://ghcr.io/pi-base/compile:latest | |
- name: Persist bundle as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bundle.json | |
path: bundle.json | |
- name: Upload bundle to S3 | |
run: | | |
aws s3 cp --acl public-read bundle.json s3://pi-base-bundles/${GITHUB_REF:-unknown}.json | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-east-2 | |
- name: Upload bundle to R2 | |
run: | | |
aws s3api put-object --endpoint-url https://78c505984bbdc3e69206eecb9471c4de.r2.cloudflarestorage.com --bucket pi-base --key ${GITHUB_REF:-unknown}.json --body bundle.json | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: auto | |
# - name: Notify Slack | |
# run: | | |
# curl -X POST \ | |
# -H 'Content-type: application/json' \ | |
# -H 'Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}' \ | |
# --data '{ | |
# "channel": "activity", | |
# "icon_emoji": ":female_scientist:", | |
# "attachments": [ | |
# { | |
# "mrkdwn_in": ["text"], | |
# "text": "New release for *${{ github.repository }}*", | |
# "color": "good", | |
# "fields": [ | |
# { "title": "Message", "value": "${{ github.event.head_commit.message }}"}, | |
# { "title": "Author", "value": "${{ github.actor }}" }, | |
# { "title": "Ref", "value": "${{ github.ref }}", "short": true }, | |
# { "title": "Sha", "value": "${{ github.sha }}", "short": true } | |
# ] | |
# } | |
# ] | |
# }' \ | |
# https://slack.com/api/chat.postMessage |