2022-08-28 20:44:10 +02:00
|
|
|
name: Website
|
|
|
|
|
2022-08-28 21:02:54 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: pages
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-08-28 20:44:10 +02:00
|
|
|
on:
|
2023-11-12 00:15:50 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
workflow_run:
|
|
|
|
workflows:
|
|
|
|
- Release
|
|
|
|
types:
|
|
|
|
- completed
|
2022-08-28 20:44:10 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-08-28 21:02:54 +02:00
|
|
|
build:
|
2022-12-08 17:06:02 +01:00
|
|
|
name: Build
|
2022-08-28 20:44:10 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-08 17:06:02 +01:00
|
|
|
- name: Checkout repository
|
2023-09-24 13:12:17 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2023-09-24 17:14:43 +02:00
|
|
|
- name: Setup
|
|
|
|
uses: ./.github/actions/setup
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2023-09-26 02:35:33 +02:00
|
|
|
- name: Build
|
2023-10-29 03:24:18 +01:00
|
|
|
run: pnpm run build react
|
2022-12-08 17:06:02 +01:00
|
|
|
|
|
|
|
- name: Build website
|
2022-08-28 20:44:10 +02:00
|
|
|
run: ./node_modules/.bin/next build
|
|
|
|
working-directory: iconoir.com
|
2023-01-09 21:01:41 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-12-08 17:06:02 +01:00
|
|
|
|
|
|
|
- name: Setup GitHub Pages
|
2023-09-24 13:12:17 +02:00
|
|
|
uses: actions/configure-pages@v3
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2022-08-28 20:44:10 +02:00
|
|
|
- name: Upload artifact
|
2023-09-24 13:12:17 +02:00
|
|
|
uses: actions/upload-pages-artifact@v2
|
2022-08-28 20:44:10 +02:00
|
|
|
with:
|
|
|
|
path: './iconoir.com/out'
|
2022-12-08 17:06:02 +01:00
|
|
|
|
2022-08-28 21:02:54 +02:00
|
|
|
deploy:
|
2022-12-08 17:06:02 +01:00
|
|
|
name: Deploy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
2022-08-28 21:02:54 +02:00
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
steps:
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
2023-12-17 15:20:25 +01:00
|
|
|
uses: actions/deploy-pages@v3
|