Remove Rename sandbox to CLI #139
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: Deploy static content to GitHub Pages | |
on: | |
push: | |
tags: | |
- "*" | |
branches: | |
- "main" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
env: | |
BUILD_PATH: "./src/vue" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "npm" | |
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v3 | |
- name: Install dependencies | |
run: npm install | |
working-directory: ${{ env.BUILD_PATH }} | |
- name: Build | |
run: npm run build | |
working-directory: ${{ env.BUILD_PATH }} | |
env: | |
BASE_PATH: "${{ steps.pages.outputs.base_path }}" | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "${{ env.BUILD_PATH }}/dist" | |
deploy: | |
name: Deploy | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |