Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bergbok committed Mar 16, 2024
2 parents 495845f + 2545a45 commit 2d8253d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/auto-skip-tracks-by-duration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish auto-skip-tracks-by-duration

on:
push:
branches: ['main']
paths: ['Extensions/auto-skip-tracks-by-duration/**']

jobs:
build:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./Extensions/auto-skip-tracks-by-duration

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
working-directory: Extensions/auto-skip-tracks-by-duration
run: npm ci

- name: Build
run: npm run build-local

- name: Copy README
run: cp README.md ./dist/README.md

- name: Copy preview
run: cp README.md ./dist/preview.png

- name: Publish to seperate branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist/auto-skip-tracks-by-duration
FOLDER: ./Extensions/auto-skip-tracks-by-duration/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2d8253d

Please sign in to comment.