mirror of
https://github.com/acid-info/Kurate.git
synced 2025-02-21 03:58:16 +00:00
ci: move actions to root folder (#79)
This commit is contained in:
parent
fa7db927d4
commit
a1f0462646
@ -3,10 +3,10 @@ updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: 'daily'
|
||||
interval: 'weekly'
|
||||
|
||||
- package-ecosystem: 'npm'
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: 'daily'
|
||||
versioning-strategy: increase
|
||||
interval: 'weekly'
|
||||
versioning-strategy: increase
|
@ -26,7 +26,7 @@ jobs:
|
||||
run: npm ci
|
||||
|
||||
- name: Check the build
|
||||
run: npm run check
|
||||
run: npm run check --workspaces --if-present
|
||||
|
||||
- name: Code linting
|
||||
run: npm run lint
|
||||
run: npm run lint --workspaces --if-present
|
64
packages/ui/.github/workflows/pages.yaml
vendored
64
packages/ui/.github/workflows/pages.yaml
vendored
@ -1,64 +0,0 @@
|
||||
# Simple workflow for deploying static content to GitHub Pages
|
||||
name: Publish main to GH Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
group: 'pages'
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# Single deploy job since we're just deploying
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
env:
|
||||
CNAME: theoutlet.swarm.city
|
||||
NODE_VERSION: 18
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Use Node.js ${{ env.NODE_VERSION }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: npm
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Install npm deps
|
||||
run: npm ci
|
||||
|
||||
- name: Build for gh-pages
|
||||
run: |
|
||||
npm run build
|
||||
echo "{{ env.CNAME }}" > ./build/CNAME
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v2
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: './build'
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
Loading…
x
Reference in New Issue
Block a user