diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3b4ddcc --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +# .github/workflows/main.yml +name: Main +on: + push: + branches: + - 'main' + - 'gdrive-test' + +jobs: + gdrive-upload: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Archive files + run: | + sudo apt-get update + sudo apt-get install zip + zip -r archive.zip * + + - name: Upload to gdrive + uses: mathisve/gdrive-upload-action@main + with: + filename: archive.zip + name: documentation.zip + folderId: ${{ secrets.folderId }} + credentials: ${{ secrets.credentials }} + encoded: false