Add ftp and node build templates
This commit is contained in:
@@ -3,7 +3,7 @@ on:
|
|||||||
push
|
push
|
||||||
jobs:
|
jobs:
|
||||||
build_container:
|
build_container:
|
||||||
runs_on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
on: push
|
||||||
|
name: Deploy website on push
|
||||||
|
jobs:
|
||||||
|
web-deploy:
|
||||||
|
name: Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Pull repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
ref: build
|
||||||
|
- name: Push changes to webserver
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.6
|
||||||
|
with:
|
||||||
|
server: ${{ vars.FTP_URL }}
|
||||||
|
username: ${{ vars.FTP_USERNAME }}
|
||||||
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
|
local-dir: dist/
|
||||||
|
server-dir: website/
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# NOTE: This is still WIP
|
||||||
|
on: push
|
||||||
|
name: Run an npm build
|
||||||
|
jobs:
|
||||||
|
node-build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Pull repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: Run node build
|
||||||
|
uses: actions/node-action@main
|
||||||
|
with:
|
||||||
|
script: 'path/to/script'
|
||||||
|
- name: Upload built files
|
||||||
|
uses: actions/git-auto-commit-action@v7
|
||||||
|
with:
|
||||||
|
branch: build
|
||||||
|
commit_message: "[skip ci] Run build on push"
|
||||||
|
commit_user_name: Node build runner [bot]
|
||||||
|
commit_user_email: actions@janishutz.com
|
||||||
|
commit_author: Node build runner [bot] <actions@janishutz.com>
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
on: push
|
||||||
|
name: Run a js build script
|
||||||
|
jobs:
|
||||||
|
node-build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Pull repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: Run node build
|
||||||
|
uses: actions/node-action@main
|
||||||
|
with:
|
||||||
|
script: 'path/to/script'
|
||||||
|
- name: Upload built files
|
||||||
|
uses: actions/git-auto-commit-action@v7
|
||||||
|
with:
|
||||||
|
branch: build
|
||||||
|
commit_message: "[skip ci] Run build on push"
|
||||||
|
commit_user_name: Node build runner [bot]
|
||||||
|
commit_user_email: actions@janishutz.com
|
||||||
|
commit_author: Node build runner [bot] <actions@janishutz.com>
|
||||||
|
|||||||
Reference in New Issue
Block a user