[go: nahoru, domu]

Skip to content

Commit

Permalink
ci: add 'next' to ci, skip gh deploy for it
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianCataldo committed Mar 22, 2023
1 parent f28dbc0 commit b0b535e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.yaml]
indent_style = space
10 changes: 6 additions & 4 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Extracted from https://github.com/JulianCataldo/gh-actions/tree/main

name: Deploy to GitHub Pages — [Demo]
name: Flowbite Admin Dashboard — CI

on:
push:
branches: ['main']
branches: ['main', 'next']

workflow_dispatch:

Expand All @@ -14,10 +14,9 @@ env:

concurrency: ${{ github.workflow }}-${{ github.ref }}


jobs:
deploy:
name: Deploy demo
name: Demo CI
runs-on: ubuntu-20.04

environment:
Expand Down Expand Up @@ -75,10 +74,13 @@ jobs:
# NOTE: Could be swapped with Vercel, Netlify…

- name: Upload artifact — Demo (dist)
# Skip for developement branch.
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: ./dist

- name: Deploy to GitHub Pages — Demo (dist)
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit b0b535e

Please sign in to comment.