mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-10 09:14:15 +03:00
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
name: "CI"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'releases/*'
|
|
|
|
jobs:
|
|
build: # make sure build/ci work properly
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup node and cache dependencies
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
cache: 'npm'
|
|
|
|
- name: Build and test
|
|
run: |
|
|
npm install
|
|
npm run all
|
|
|
|
- name: Run action
|
|
uses: ./
|
|
with:
|
|
repository: "eloots/course-management-tools"
|
|
tag: "1.0.0"
|
|
fileName: "course-management-tools.zip"
|
|
out-file-path: "./cmt"
|
|
|
|
- name: List downloaded files
|
|
run: ls -lrth cmt
|
|
|
|
- name: Test download from a private repo
|
|
uses: ./
|
|
with:
|
|
repository: "robinraju/release-downloader-test"
|
|
latest: true
|
|
fileName: "*"
|
|
tarBall: true
|
|
zipBall: true
|
|
token: ${{ secrets.RELEASE_DOWNLOADER_TEST_TOKEN }}
|
|
out-file-path: "./downloader-test"
|
|
|
|
- name: List downloaded files from private repo
|
|
run: ls -lrth downloader-test
|