Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palewire/internet-archive-upload
Upload files to an archive.org collection in your GitHub Action
https://github.com/palewire/internet-archive-upload
actions archiving github-actions internetarchive
Last synced: 28 days ago
JSON representation
Upload files to an archive.org collection in your GitHub Action
- Host: GitHub
- URL: https://github.com/palewire/internet-archive-upload
- Owner: palewire
- License: mit
- Created: 2022-12-02T22:09:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T01:21:16.000Z (8 months ago)
- Last Synced: 2024-10-07T15:52:49.477Z (about 1 month ago)
- Topics: actions, archiving, github-actions, internetarchive
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Inputs
* `access-key`: Your archive.org access key
* `secret-key`: Your archive.org secret key
* `identifier`: The unique identifier of the archive.org item where the file will be stored
* `files`: The file or folder path inside the action's filesystem to upload## Usage
Upload a single file.
```yaml
name: Example action
jobs:
job:
name: Upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3- name: Upload file to archive.org
uses: palewire/internet-archive-upload@v1
with:
access-key: ${{ secrets.IA_ACCESS_KEY }}
secret-key: ${{ secrets.IA_SECRET_KEY }}
identifier: your-item
files: your-file.jpg
```Upload a directory of files.
```yaml
name: Example action
jobs:
job:
name: Upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3- name: Upload file to archive.org
uses: palewire/internet-archive-upload@v1
with:
access-key: ${{ secrets.IA_ACCESS_KEY }}
secret-key: ${{ secrets.IA_SECRET_KEY }}
identifier: your-item
files: your-files/
```