From 2545a45459d8184b6a7f28f5e1d27e34108d88fc Mon Sep 17 00:00:00 2001 From: Bergbok <66174189+Bergbok@users.noreply.github.com> Date: Sat, 16 Mar 2024 22:55:00 +0200 Subject: [PATCH] Add auto-skip-tracks-by-duration dist workflow --- .../auto-skip-tracks-by-duration.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/auto-skip-tracks-by-duration.yml diff --git a/.github/workflows/auto-skip-tracks-by-duration.yml b/.github/workflows/auto-skip-tracks-by-duration.yml new file mode 100644 index 0000000..d30aa40 --- /dev/null +++ b/.github/workflows/auto-skip-tracks-by-duration.yml @@ -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 }}