Merge pull request #2 from viarotel-org/release-please--branches--mai… #6
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: release-pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
- name: Install pnpm 📥 | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: | | |
args: [] | |
- name: Install and Build 🔧 | |
run: | | |
pnpm install | |
pnpm build | |
- name: Upload Artifacts 🔺 | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: dist | |
deploy: | |
concurrency: ci-${{ github.ref }} | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Download Artifacts 🔻 | |
uses: actions/download-artifact@v1 | |
with: | |
name: dist | |
- name: Deploy pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: docs | |
folder: dist |