Skip to content

Merge pull request #5 from welhoilija/change-to-typescript #18

Merge pull request #5 from welhoilija/change-to-typescript

Merge pull request #5 from welhoilija/change-to-typescript #18

name: Deploy Vue App to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Fix permissions
run: |
chmod -c -R +rX "dist/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist
- name: Deploy
if: github.ref == 'refs/heads/main' # Only deploy if on main branch
uses: actions/deploy-pages@v2.0.4