Skip to content

Commit

Permalink
Merge pull request #4988 from thematters/fix/rclone
Browse files Browse the repository at this point in the history
fix(ci): disable base64 to use plain text config
  • Loading branch information
gitwoz authored Dec 12, 2024
2 parents 5798cd9 + 3042dcb commit 16e17eb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ jobs:
node-version: '18'
cache: 'npm'

- name: Setup rclone
if: github.base_ref == 'develop' || github.base_ref == 'master'
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: |
[r2]
type = s3
provider = Cloudflare
access_key_id = ${{ secrets.RCLONE_CONFIG_R2_ACCESS_KEY_ID }}
secret_access_key = ${{ secrets.RCLONE_CONFIG_R2_SECRET_ACCESS_KEY }}
endpoint = ${{ secrets.RCLONE_CONFIG_R2_ENDPOINT }}
disable_base64: true

- name: Install Dependencies
run: npm ci

Expand Down Expand Up @@ -82,18 +95,6 @@ jobs:
&& npm install --production \
&& zip -r --symlinks deploy.zip . -x .git/\*
- name: Setup rclone
if: github.base_ref == 'develop' || github.base_ref == 'master'
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: |
[r2]
type = s3
provider = Cloudflare
access_key_id = ${{ secrets.RCLONE_CONFIG_R2_ACCESS_KEY_ID }}
secret_access_key = ${{ secrets.RCLONE_CONFIG_R2_SECRET_ACCESS_KEY }}
endpoint = ${{ secrets.RCLONE_CONFIG_R2_ENDPOINT }}
- name: Upload Assets (develop - R2)
if: github.base_ref == 'develop'
run: rclone sync .next/static r2:matters-assets-next-develop/_next/static -P
Expand Down

0 comments on commit 16e17eb

Please sign in to comment.