Skip to content

Change ferrictorus.com to equestria.horse #3

Change ferrictorus.com to equestria.horse

Change ferrictorus.com to equestria.horse #3

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: |
[ponyplace]
type = azureblob
env_auth = true
account = ponyplace
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 "ponyplace:\$web"
- name: Azure logout
run: az logout
if: always()