Skip to content

Commit

Permalink
rread
Browse files Browse the repository at this point in the history
  • Loading branch information
hammyo-o authored Nov 18, 2024
1 parent 4712209 commit 2d54203
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 0.8/NHentai/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ var _Sources = (() => {
// src/NHentai/NHentai.ts
var NHENTAI_URL = "https://nhentai.net";
var NHentaiInfo = {
version: "4.0.8",
version: "4.0.81",
name: "nhentai",
icon: "icon.png",
author: "NotMarek & Netsky",
Expand Down
32 changes: 32 additions & 0 deletions workflows/deletion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Clean up published sources for deleted branch
on:
delete:
branches:
- '**'
- '!main'
jobs:
delete:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- name: Clean up
run: |
echo "Clean up for branch ${{ github.event.ref }}"
- name: Checkout Branch
uses: actions/[email protected]

- name: Checkout existing bundles
uses: actions/[email protected]
continue-on-error: true
with:
ref: gh-pages
path: bundles

- run: rm -rf bundles/${{ github.event.ref }}

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: bundles
44 changes: 44 additions & 0 deletions workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Bundle and Publish Sources
on:
push:
branches:
- '**'
- '!main'
jobs:
build:
name: Bundle and Publish Sources
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout Branch
uses: actions/[email protected]

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch

- name: Checkout existing bundles
uses: actions/[email protected]
continue-on-error: true
with:
ref: gh-pages
path: bundles

- run: npm install
- run: npm run bundle -- --folder=${{ steps.extract_branch.outputs.branch }}

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: bundles

0 comments on commit 2d54203

Please sign in to comment.