Use prebuilt mc binary in place of docker image #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test action | |
on: push | |
jobs: | |
upload: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Generate test files | |
run: | | |
echo "Minio Test" >> test.txt | |
echo "Minio Test" >> test-wild.txt | |
- name: Test single file upload | |
uses: ./ | |
with: | |
url: https://s3.nubificus.com | |
access-key: ${{ secrets.AWS_ACCESS_KEY }} | |
secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
local-path: "./test.txt" | |
remote-path: "github/minio/" | |
- name: Test wildcard with extension upload | |
uses: ./ | |
with: | |
url: https://s3.nubificus.com | |
access-key: ${{ secrets.AWS_ACCESS_KEY }} | |
secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
local-path: "./*.txt" | |
remote-path: "github/minio/" | |
- name: Test wildcard upload | |
uses: ./ | |
with: | |
url: https://s3.nubificus.com | |
access-key: ${{ secrets.AWS_ACCESS_KEY }} | |
secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
local-path: "./*" | |
remote-path: "github/minio/" |