upload artifact #65
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: Workflow | |
on: | |
schedule: | |
# Schedule for every day at 12:00 CEST | |
- cron: '0 10 * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Lint, format, test and build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- name: Use Node LTS ✨ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install dependencies 📦️ | |
run: pnpm install --frozen-lockfile | |
- name: Lint 💅 | |
run: pnpm lint | |
# - name: Test 🧪 | |
# run: yarn test --passWithNoTests | |
- name: Build 🔨 | |
run: pnpm build | |
- name: Upload GitHub Pages assets 📦️ | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ./build | |
- name: Upload Artifacts | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# this should match the `pages` option in your adapter-static options | |
path: 'build/' | |
deploy: | |
name: Deployment | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages 🚀 | |
id: deployment | |
uses: actions/deploy-pages@v4 |