2024-01-31 01:19:25 +07:00
|
|
|
name: deploy
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- run: echo "COMMIT_SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 21
|
|
|
|
cache: "npm"
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
2024-01-31 01:28:05 +07:00
|
|
|
env:
|
|
|
|
MINIO_ENDPOINT: ${{ secrets.MINIO_ENDPOINT }}
|
|
|
|
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
|
|
|
|
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
|
|
|
|
MINIO_BUCKET: ${{ secrets.MINIO_BUCKET }}
|
|
|
|
PEERTUBE_FEED_URL: ${{ secrets.PEERTUBE_FEED_URL }}
|
2024-01-31 12:09:37 +07:00
|
|
|
UMAMI_ENABLED: ${{ vars.UMAMI_ENABLED }}
|
|
|
|
UMAMI_SCRIPT_URL: ${{ vars.UMAMI_SCRIPT_URL }}
|
|
|
|
UMAMI_WEBSITE_ID: ${{ vars.UMAMI_WEBSITE_ID }}
|
2024-01-31 01:19:25 +07:00
|
|
|
- uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./out
|
|
|
|
cname: ig.rizaldy.club
|