Skip to content

Commit

Permalink
Merge pull request #768 from ePages-de/develop
Browse files Browse the repository at this point in the history
Release v0.19.0
  • Loading branch information
Unai Abrisketa authored Dec 1, 2022
2 parents 627a954 + 61b6513 commit a526818
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 176 deletions.
170 changes: 0 additions & 170 deletions .circleci/config.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .firebaserc

This file was deleted.

101 changes: 101 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: CI/CD

on:
- push
- pull_request

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build_test_devportal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3
bundler-cache: true
- run: bundle exec jekyll build
- run: bundle exec rake test_ci
- uses: actions/upload-artifact@v3
with:
name: _devportal
retention-days: 7
path: |
_site/
firebase.json
build_test_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ePages-de/epages-docs
ref: master
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3
bundler-cache: true
- run: bundle exec jekyll build
- run: bundle exec rake test_ci
- uses: actions/upload-artifact@v3
with:
name: _docs
retention-days: 7
path: |
_site/
combine_projets:
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') }}
runs-on: ubuntu-latest
needs:
- build_test_devportal
- build_test_docs
steps:
- uses: actions/download-artifact@v3
with:
name: _devportal
- uses: actions/download-artifact@v3
with:
name: _docs
path: ./_docs
- run: rsync -abviuzP _docs/ _site/
- uses: actions/upload-artifact@v3
with:
name: _site
retention-days: 7
path: |
_site/
firebase.json
deploy_staging:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
runs-on: ubuntu-latest
needs:
- combine_projets
steps:
- uses: actions/download-artifact@v3
with:
name: _site
- run: curl -sL firebase.tools | bash
- run: firebase deploy --project $FIREBASE_PROJECT --token=$FIREBASE_TOKEN --non-interactive
env:
FIREBASE_PROJECT: ${{ secrets.FIREBASE_APP_NAME_STAGING }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

deploy_production:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
needs:
- combine_projets
steps:
- uses: actions/download-artifact@v3
with:
name: _site
- run: curl -sL firebase.tools | bash
- run: firebase deploy --project $FIREBASE_PROJECT --token=$FIREBASE_TOKEN --non-interactive
env:
FIREBASE_PROJECT: ${{ secrets.FIREBASE_APP_NAME_PRODUCTION }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 comments on commit a526818

Please sign in to comment.