47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Build Gameflow Site
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:js-22.04
|
|
|
|
steps:
|
|
- name: Checkout your repository using git
|
|
uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: "true"
|
|
|
|
- name: Checkout lfs
|
|
run: |
|
|
git lfs install --local
|
|
AUTH=$(git config --local http.${{ forge.server_url }}/.extraheader)
|
|
git config --local --unset http.${{ forge.server_url }}/.extraheader
|
|
git config --local http.${{ forge.server_url }}/${{ forge.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
|
git lfs pull
|
|
|
|
- name: Install, build, and upload your site
|
|
uses: https://github.com/withastro/action@main
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
|
|
SITE_BASE:
|
|
SITE_URL: https://gameflow.simeonradivoev.com
|
|
with:
|
|
package-manager: "bun"
|
|
|
|
- name: Deploy
|
|
uses: https://github.com/up9cloud/action-rsync@master
|
|
env:
|
|
HOST: simeonradivoev.com
|
|
PORT: 8083
|
|
KEY: ${{secrets.DEPLOY_SSH_KEY}}
|
|
TARGET: /static_websites/gameflow
|
|
SOURCE: ./dist/
|
|
VERBOSE: true
|
|
RUN_SCRIPT_ON: source
|
|
USER: linuxserver.io
|