fix bug with blobserver url #7
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: Build extension and upload to blob | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "src/**.ts" | |
- "*.json" | |
- "rollup.config.mjs" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Node setup for extension build | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Build extension | |
run: | | |
mkdir -p ./dist | |
npm install | |
npm run build | |
- name: Produce build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: | | |
dist | |
- name: Setup rclone | |
uses: AnimMouse/setup-rclone@v1 | |
with: | |
rclone_config: | | |
[minio] | |
type = s3 | |
provider = Minio | |
env_auth = false | |
access_key_id = ${{ secrets.RCLONE_CONFIG_MINIO_ACCESS_KEY_ID }} | |
secret_access_key = ${{ secrets.RCLONE_CONFIG_MINIO_SECRET_ACCESS_KEY }} | |
endpoint = ${{ secrets.RCLONE_CONFIG_MINIO_ENDPOINT }} | |
region = us-east-1 | |
disable_base64: true | |
# creds will expire around 2024-06-16 | |
#- name: Azure login | |
# uses: azure/login@v1 | |
# with: | |
# creds: ${{ secrets.PONYPLACE_BLOB_CREDS }} | |
- name: Upload to blob storage | |
run: | | |
rclone -c copy ./dist "minio:ponyplace" | |
#- name: Azure logout | |
# run: az logout | |
# if: always() |