feat(workflows): copied workflow from gitea template
This commit is contained in:
parent
a64de4d672
commit
622809d629
1 changed files with 35 additions and 0 deletions
35
.gitea/workflows/OnMergeOnPushToLive.yaml
Normal file
35
.gitea/workflows/OnMergeOnPushToLive.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: On merge to development
|
||||
run-name: ${{ gitea.actor }} is merging to development
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- ${{ vars.branch }}
|
||||
push:
|
||||
branches:
|
||||
- ${{ vars.branch }}
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
# Uncomment below for vite react projects
|
||||
# - name: Set up Node.js
|
||||
# uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: 20
|
||||
# - name: Install dependencies
|
||||
# run: npm ci
|
||||
# - name: Build Vite site
|
||||
# run: npm run build
|
||||
- name: Deploy to neocities
|
||||
uses: bcomnes/deploy-to-neocities@v3
|
||||
with:
|
||||
api_key: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||
cleanup: false
|
||||
neocities_supporter: false
|
||||
preview_before_deploy: true
|
||||
dist_dir: dist # Set to where your website will be (e.g. "." for the main project folder)
|
||||
Loading…
Add table
Add a link
Reference in a new issue