From 596e487ede6ecfd12394e8b34523fe39f6e3885b Mon Sep 17 00:00:00 2001 From: JumpiiX <131596117+2David4@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:53:54 +0100 Subject: [PATCH] Create backup system --- .github/workflows/backup-to-gdrive.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/backup-to-gdrive.yml diff --git a/.github/workflows/backup-to-gdrive.yml b/.github/workflows/backup-to-gdrive.yml new file mode 100644 index 0000000..5a4ae48 --- /dev/null +++ b/.github/workflows/backup-to-gdrive.yml @@ -0,0 +1,21 @@ +name: Backup to Google Drive + +on: + push: + branches: + - master + +jobs: + backup: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Upload to Google Drive + uses: adityak74/google-drive-upload-git-action@v0.3 + with: + credentials: ${{ secrets.GOOGLE_DRIVE_SERVICE_ACCOUNT_CONFIG }} + folderId: "1gd_6inwVqvdatgAI4Yb31TtHNMHcEiV9" + filename: "test.docx"