Skip to content

Commit

Permalink
Revert auto-skip-tracks-by-duration workflow to initial state
Browse files Browse the repository at this point in the history
Publish to dist branch again instead of folder within main branch
  • Loading branch information
Bergbok committed Oct 9, 2024
1 parent 36b14a3 commit 14a39b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/auto-skip-tracks-by-duration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish auto-skip-tracks-by-duration

on:
workflow_dispatch:
push:
branches: ['main']
paths: ['Extensions/auto-skip-tracks-by-duration/**']
Expand All @@ -27,18 +26,19 @@ jobs:
working-directory: Extensions/auto-skip-tracks-by-duration
run: npm ci

- name: Remove existing dist folder
run: rm -rf dist

- name: Build
run: npm run build-local

- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A dist
git commit -m "Publish auto-skip-tracks-by-duration"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git

- 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: self
BRANCH: dist/auto-skip-tracks-by-duration
FOLDER: ./Extensions/auto-skip-tracks-by-duration/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This file was deleted.

0 comments on commit 14a39b4

Please sign in to comment.