mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-05-02 06:27:20 -05:00
This reverts commit 6e873b936d.
This commit is contained in:
50
.github/workflows/deploy.yml
vendored
Normal file
50
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Deploy repository to Github Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, stable]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: main
|
||||
ref: main
|
||||
fetch-depth: "0"
|
||||
- run: |
|
||||
cd main
|
||||
./build_site.sh ../_site/stable
|
||||
- name: Checkout dev
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: dev
|
||||
# change this ref to whatever dev branch/tag we need when necessary
|
||||
ref: main
|
||||
fetch-depth: "0"
|
||||
- run: |
|
||||
cd dev
|
||||
../main/build_site.sh ../_site/develop
|
||||
- uses: actions/upload-pages-artifact@v2
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-22.04
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v2
|
||||
48
.github/workflows/on_push_deploy.yml
vendored
48
.github/workflows/on_push_deploy.yml
vendored
@@ -1,48 +0,0 @@
|
||||
name: Build and Publish Plugins and Themes
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/**
|
||||
- plugins/**
|
||||
- themes/**
|
||||
- build-config.json
|
||||
- build.js
|
||||
- package.json
|
||||
- yarn.lock
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build_and_publish:
|
||||
name: Build and Publish Plugins and Themes
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: "0"
|
||||
|
||||
- name: Install node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: Install repository dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Build plugins and themes
|
||||
run: yarn run build-all-dist
|
||||
|
||||
- name: Publish to stable branch
|
||||
uses: s0/git-publish-subdir-action@develop
|
||||
env:
|
||||
REPO: self
|
||||
BRANCH: stable
|
||||
FOLDER: "dist" # build-config.json outDir
|
||||
MESSAGE: "built for {sha}"
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user