Skip to content

Commit

Permalink
Add workflow for testing dist upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nbolton committed Oct 15, 2024
1 parent cd68199 commit 3ad1429
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-dist-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Used only for testing the `dist-upload` action.
# Triggered using 'Run workflow' in the Actions tab.

name: Test dist upload

on:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Make test dist
run: |
mkdir dist
echo "test" > dist/test
- name: Upload to GitHub
if:
uses: ./.github/actions/dist-upload
with:
use-github: true
github-target-filename: "test"

- name: Upload to Google Drive
if:
uses: ./.github/actions/dist-upload
with:
use_gdrive: true
gdrive-target-base-dir: "test"
gdrive-secret-key: ${{ secrets.GOOGLE_DRIVE_KEY }}
gdrive-parent-folder-id: ${{ secrets.GOOGLE_DRIVE_TECH_DRIVE }}
package-version: 1.0.0-test

0 comments on commit 3ad1429

Please sign in to comment.