Replace submit
subcommand with sync
(#41)
#2
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
name: dnt | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: canary | |
- name: Run build script | |
run: deno task dnt $GITHUB_SHA | |
- name: Checkout new branch for npm/ content | |
run: | | |
git checkout -B npm || git checkout npm | |
git rm -rf . | |
cp -r npm/* . | |
rm -rf npm | |
git config --global user.email "[email protected]" | |
git config --global user.name "LC-Dailies Bot" | |
git add . | |
git commit -m "Publish npm ✨" | |
- name: Push new branch to remote | |
run: | | |
# Replace with the appropriate remote repository URL | |
# Example: git push --force origin npm | |
git push --force -u origin npm |