refactor: combine name arrays to first name array #22
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 public website | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js latest LTS version | |
uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- name: Setup Pages | |
uses: actions/configure-pages@v1 | |
- name: Restore packages | |
run: npm ci -f | |
- name: Build public website | |
run: npm run generate-website | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: './out' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@main |