ci: move actions to root folder (#79)

This commit is contained in:
Vojtech Simetka 2022-12-15 22:34:33 +01:00 committed by GitHub
parent fa7db927d4
commit a1f0462646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 69 deletions

View File

@ -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

View File

@ -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

View File

@ -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