Skip to content

deploy to github pages #34

deploy to github pages

deploy to github pages #34

name: build-test-deploy
on: push
jobs:
build 🛠️:

Check failure on line 6 in .github/workflows/build-test-deploy.yml

View workflow run for this annotation

GitHub Actions / build-test-deploy

Invalid workflow file

The workflow is not valid. .github/workflows/build-test-deploy.yml (Line: 6, Col: 3): The identifier 'build 🛠️' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/build-test-deploy.yml (Line: 20, Col: 3): The identifier 'test 🧪' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: use node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run build
test 🧪:
needs: build 🛠️
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: use node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm test
deploy 🚀:
needs: test 🧪
permissions:
deployments: write
contents: write
statuses: write
actions: write
pages: write
id-token: write
environment:
name: production
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: use node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run build
- name: configure github pages
uses: actions/configure-pages@v3
with:
static_site_generator: next
- name: upload artifacts
uses: actions/upload-pages-artifact@v1
with:
path: "./out"
- name: deploy
id: deployment
uses: actions/deploy-pages@v1