Attempt to build and publish phanpy
This commit is contained in:
commit
e9c6481476
31
.forgejo/workflows/publish.yaml
Normal file
31
.forgejo/workflows/publish.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
on:
|
||||
schedule:
|
||||
- cron: '0, 0,12 * * *'
|
||||
|
||||
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
|
Loading…
Reference in a new issue