-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert auto-skip-tracks-by-duration workflow to initial state
Publish to dist branch again instead of folder within main branch
- Loading branch information
Showing
2 changed files
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**'] | ||
|
@@ -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 }} |
1 change: 0 additions & 1 deletion
1
Extensions/auto-skip-tracks-by-duration/dist/auto-skip-tracks-by-duration.js
This file was deleted.
Oops, something went wrong.