Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
extended optional parameters
  • Loading branch information
skywarth authored May 15, 2023
1 parent 444d547 commit 9c18b4b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ branding:
color: 'purple'
author: 'Skywarth'
inputs:
build_path:
description: "Build path string for vite/vue, this affects the routing, history and asset links. Make sure to provide appropriately since Github Pages stores your app in a directory under a subdomain."
public_base_path:
description: "Public base path string for vite/vue, this affects the routing, history and asset links. Make sure to provide appropriately since Github Pages stores your app in a directory under a subdomain."
required: false
default: ${{ github.event.repository.name }}
build_path:
description: "Which folder do you want your Github Page to use as root directory. Usually it is your build output directory such as ./dist "
required: false
default: ./dist
deploy_environment_name:
description: "Desired name for the Deployment environment. "
required: false
default: github-pages
runs:
using: "composite"
steps:
Expand All @@ -24,17 +32,17 @@ runs:
run: npm ci
shell: bash
- name: Build
run: npm run build
run: vite build --base=${{ inputs.public_base_path }}
shell: bash
env:
NODE_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
path: ${{ inputs.build_path }}
- name: Deploy
env:
name: github-pages
name: ${{ inputs.deploy_environment_name }}
url: ${{ steps.deployment.outputs.page_url }}
uses: actions/deploy-pages@v2
id: deployment
Expand Down

0 comments on commit 9c18b4b

Please sign in to comment.