Browse Source

add github push code to builder CI actions

Nick Sweeting 5 years ago
parent
commit
ec86060a61
3 changed files with 47 additions and 2 deletions
  1. 17 2
      .github/workflows/debian.yml
  2. 15 0
      .github/workflows/homebrew.yml
  3. 15 0
      .github/workflows/pip.yml

+ 17 - 2
.github/workflows/debian.yml

@@ -31,12 +31,12 @@ jobs:
       - name: Build Debian/Apt sdist_dsc
         run: |
           python3 setup.py --command-packages=stdeb.command \
-              sdist_dsc
+            sdist_dsc
 
       - name: Build Debian/Apt bdist_deb
         run: |
           python3 setup.py --command-packages=stdeb.command \
-              bdist_deb
+            bdist_deb
 
       - name: Install archivebox from deb
         run: |
@@ -50,6 +50,21 @@ jobs:
           archivebox version
           archivebox status
 
+      # - name: Commit files
+      #   run: |
+      #     cd deb_dist/
+      #     git config --local user.email "[email protected]"
+      #     git config --local user.name "GitHub Action"
+      #     git commit -m "Debian package autobuild" -a
+      
+      # - name: Push changes
+      #   uses: ad-m/github-push-action@master
+      #   with:
+      #     github_token: ${{ secrets.GITHUB_TOKEN }}
+      #     repository: ArchiveBox/debian-archivebox
+      #     branch: ${{ github.ref }}
+      #     directory: deb_dist
+
       # TODO: push debian package to launchpad PPA
       # - name: Push to launchpad
       #   run: |

+ 15 - 0
.github/workflows/homebrew.yml

@@ -30,4 +30,19 @@ jobs:
           archivebox version
           archivebox status
 
+      # - name: Commit files
+      #   run: |
+      #     cd brew_dist/
+      #     git config --local user.email "[email protected]"
+      #     git config --local user.name "GitHub Action"
+      #     git commit -m "Homebrew package autobuild" -a
+      
+      # - name: Push changes
+      #   uses: ad-m/github-push-action@master
+      #   with:
+      #     github_token: ${{ secrets.GITHUB_TOKEN }}
+      #     repository: ArchiveBox/homebrew-archivebox
+      #     branch: ${{ github.ref }}
+      #     directory: brew_dist
+
       # TODO: push bottle to Github and open homebrew core PR with latest changes

+ 15 - 0
.github/workflows/pip.yml

@@ -39,4 +39,19 @@ jobs:
           archivebox version
           archivebox status
 
+      # - name: Commit files
+      #   run: |
+      #     cd pip_dist/
+      #     git config --local user.email "[email protected]"
+      #     git config --local user.name "GitHub Action"
+      #     git commit -m "Pip package autobuild" -a
+      
+      # - name: Push changes
+      #   uses: ad-m/github-push-action@master
+      #   with:
+      #     github_token: ${{ secrets.GITHUB_TOKEN }}
+      #     repository: ArchiveBox/pip-archivebox
+      #     branch: ${{ github.ref }}
+      #     directory: pip_dist
+
       # TODO: push to PyPI with twine