From 6e91ba070a58a01038e4515a91c311c296a6486d Mon Sep 17 00:00:00 2001 From: Luciano Ayres Date: Sat, 13 Jul 2024 15:52:32 -0300 Subject: [PATCH] fix: delete old workflow file --- .github/workflows/deploy.yml | 44 ------------------------------------ 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 5859f7a..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Deploy to dist branch -permissions: - contents: write - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Delete local dist branch - run: | - git branch -D dist || true - - - name: Delete remote dist branch - run: | - git push origin --delete dist || true - - - name: Create and switch to new dist branch - run: | - git checkout -b dist - git push --set-upstream origin dist - - - name: Move content from src to root - run: | - mv ./src/* ./ - rm -rf ./src - - - name: Commit and push changes - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add . - git commit -m "Move content from src to root" - git push origin dist - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}