Revert "integrate stash-plugin-builder (#244)" (#262)

This reverts commit 6e873b936d.
This commit is contained in:
WithoutPants
2024-02-23 07:51:24 +11:00
committed by GitHub
parent 6e873b936d
commit 6664747041
10 changed files with 128 additions and 1146 deletions

50
.github/workflows/deploy.yml vendored Normal file
View 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

View File

@@ -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 }}