Skip to content

Update static.yml removed duplicate name #21

Update static.yml removed duplicate name

Update static.yml removed duplicate name #21

Workflow file for this run

name: Deploy and build content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
strategy:
matrix:
node-version: [ 18, 20 ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install and test
run: |
npm install -g yarn
npm install -g gulp
yarn install
gulp build # to do: we should make this run by `npm test`
env:
CI: true
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
# Upload entire repository
path: 'build'
- name: Deploy to GH Pages 🚀
id: deployment
uses: actions/deploy-pages@v4
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish_dir: public