35 lines
834 B
YAML
35 lines
834 B
YAML
on:
|
|
schedule:
|
|
- cron: '0, 0,12 * * *'
|
|
push:
|
|
branches:
|
|
- '*'
|
|
|
|
env:
|
|
PHANPY_CLIENT_NAME: Phanpy for Dogs
|
|
PHANPY_WEBSITE: https://phanpy.asonix.dog
|
|
PHANPY_DEFAULT_INSTANCE: masto.asonix.dog
|
|
|
|
|
|
jobs:
|
|
publish-phanpy:
|
|
runs-on: base-image
|
|
steps:
|
|
-
|
|
name: Checkout phanpy
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
repository: 'cheeaun/phanpy'
|
|
github-server-url: 'https://github.com'
|
|
ref: 'production'
|
|
-
|
|
name: Build phanpy
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
-
|
|
name: Publish phanpy
|
|
run: |
|
|
mc alias set phanpy ${{ vars.GARAGE_ENDPOINT }} ${{ secrets.GARAGE_KEY_ID }} ${{ secrets.GARAGE_SECRET_KEY }}
|
|
mc cp dist/ phanpy/${{ vars.GARAGE_BUCKET_NAME }} --recursive
|