Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Prepare a test file
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Prepare a test file
run: |
Expand All @@ -65,7 +65,7 @@ jobs:
test-functions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

# Create test functions
- name: Prepare test functions
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Deploy to QuantCDN Action

This GitHub Action deploys your static site and/or functions to QuantCDN using the Quant CLI v5.
This GitHub Action deploys your static site and/or functions to QuantCDN using the Quant CLI v6.

## Usage

### Deploy Assets
```yaml
- uses: quantcdn/action-deploy@v5
- uses: quantcdn/action-deploy@v6
with:
customer: your-customer-id
project: your-project-name
Expand All @@ -16,7 +16,7 @@ This GitHub Action deploys your static site and/or functions to QuantCDN using t

### Deploy Functions
```yaml
- uses: quantcdn/action-deploy@v5
- uses: quantcdn/action-deploy@v6
with:
customer: your-customer-id
project: your-project-name
Expand Down Expand Up @@ -56,15 +56,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Build site
run: |
npm install
npm run build

- name: Deploy to QuantCDN
uses: quantcdn/action-deploy@v5
uses: quantcdn/action-deploy@v6
with:
customer: your-customer-id
project: your-project-name
Expand Down Expand Up @@ -109,10 +109,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Deploy Functions
uses: quantcdn/action-deploy@v5
uses: quantcdn/action-deploy@v6
with:
customer: your-customer-id
project: your-project-name
Expand All @@ -132,15 +132,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Build site
run: |
npm install
npm run build

- name: Deploy to QuantCDN
uses: quantcdn/action-deploy@v5
uses: quantcdn/action-deploy@v6
with:
customer: your-customer-id
project: your-project-name
Expand All @@ -151,7 +151,7 @@ jobs:

## Notes

- This action uses Quant CLI v5
- This action uses Quant CLI v6
- For search functionality, please use the dedicated search action
- Make sure your `QUANT_TOKEN` is stored securely in your repository secrets

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
steps:
- name: Deploy Functions
if: inputs.functions != ''
uses: "docker://quantcdn/cli:5.1.1"
uses: "docker://quantcdn/cli:6.0.0"
env:
CUSTOMER: ${{ inputs.customer }}
TOKEN: ${{ inputs.token }}
Expand All @@ -71,7 +71,7 @@ runs:

- name: Deploy Assets
if: inputs.dir != ''
uses: "docker://quantcdn/cli:5.1.1"
uses: "docker://quantcdn/cli:6.0.0"
with:
args: >
deploy
Expand Down